Body conversion for File

This commit is contained in:
Anthony Nowell
2016-11-08 01:14:18 -07:00
parent 9677cfe419
commit 45d6169610
2 changed files with 20 additions and 5 deletions

View File

@@ -167,8 +167,8 @@ impl<'a> RequestBuilder<'a> {
let mut req = client.inner.request(method.clone(), url.clone())
.headers(headers.clone());
if let Some(ref b) = body {
let body = body::as_hyper_body(&b);
if let Some(ref mut b) = body {
let body = body::as_hyper_body(b);
req = req.body(body);
}