Request body must always be a Vec<u8>.
This commit is contained in:
parent
ff30a4381a
commit
1bedd5af4e
@ -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));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user