mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-08 11:23:58 +00:00
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
This commit is contained in:
commit
803cafb995
@ -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…
Reference in New Issue
Block a user