Request body must always be a Vec<u8>.

This commit is contained in:
Jimmy Cuadra 2018-05-19 01:56:15 -07:00
parent ff30a4381a
commit 1bedd5af4e

View File

@ -157,7 +157,7 @@ impl ToTokens for Api {
} }
} else { } else {
quote! { quote! {
let mut http_request = ::http::Request::new(()); let mut http_request = ::http::Request::new(Vec::with_capacity(0));
} }
}; };