Skip to content

Commit

Permalink
fix(API): adjust to latest hyper header macros
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed Apr 30, 2015
1 parent a2547b3 commit 4115d50
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/rust/api/cmn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down

0 comments on commit 4115d50

Please sign in to comment.