chore(cleanup): remove workaround marker

... and some left-over comments.

The workaround code is actually more readable than the previous version,
so it may as well stay.

Fixes #109
This commit is contained in:
Sebastian Thiel
2016-07-17 13:56:25 +02:00
parent dc367c3475
commit e7721ce53b
2 changed files with 0 additions and 36 deletions

View File

@@ -480,23 +480,6 @@ impl<'a> Read for MultiPartReader<'a> {
}
}
// The following macro invocation needs to be expanded, as `include!`
// doens't support external macros
// 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())]
// )));
// }
// }
/// The `X-Upload-Content-Type` header.
///
/// Generated via rustc --pretty expanded -Z unstable-options, and manually
@@ -711,7 +694,6 @@ impl<'a, A> ResumableUploadHelper<'a, A>
if self.delegate.cancel_chunk_upload(&range_header) {
return None
}
// workaround https://github.com/rust-lang/rust/issues/22252
let res = self.client.post(self.url)
.header(range_header)
.header(ContentType(self.media_type.clone()))