Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
wing328 committed Feb 11, 2018
2 parents 8ba9db6 + 0b845a5 commit 803cafb
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -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);
Expand Down

0 comments on commit 803cafb

Please sign in to comment.