From 4115d50ca795ec2a2958f5f75b7681cb9f84720b Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Thu, 30 Apr 2015 11:15:48 +0200 Subject: [PATCH] fix(API): adjust to latest hyper header macros --- src/rust/api/cmn.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/rust/api/cmn.rs b/src/rust/api/cmn.rs index af20f514967..cd013bd6492 100644 --- a/src/rust/api/cmn.rs +++ b/src/rust/api/cmn.rs @@ -457,6 +457,16 @@ impl<'a> Read for MultiPartReader<'a> { header!{ #[doc="The `X-Upload-Content-Type` header."] (XUploadContentType, "X-Upload-Content-Type") => [Mime] + + xupload_content_type { + test_header!( + test1, + vec![b"text/plain"], + Some(HeaderField( + vec![Mime(TopLevel::Text, SubLevel::Plain, Vec::new())] + ))); + + } } #[derive(Clone, PartialEq, Debug)]