Body conversion for File
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user