forked from loafle/openapi-generator-original
This commit is contained in:
parent
854b5012be
commit
0b845a57e4
@ -75,7 +75,7 @@ impl<C: hyper::client::Connect>{{classname}} for {{classname}}Client<C> {
|
||||
|
||||
{{#hasBodyParam}}
|
||||
{{#bodyParams}}
|
||||
let serialized = serde_json::to_string(&body).unwrap();
|
||||
let serialized = serde_json::to_string(&{{paramName}}).unwrap();
|
||||
req.headers_mut().set(hyper::header::ContentType::json());
|
||||
req.headers_mut().set(hyper::header::ContentLength(serialized.len() as u64));
|
||||
req.set_body(serialized);
|
||||
|
Loading…
x
Reference in New Issue
Block a user