Update go client, fix double body read
@@ -244,11 +244,6 @@ func (a *{{{classname}}}Service) {{{nickname}}}(ctx context.Context{{#hasParams}
}
{{#responses}}{{#dataType}}
if localVarHttpResponse.StatusCode == {{{code}}} {
- localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body)
- if err != nil {
- return {{#returnType}}localVarReturnValue, {{/returnType}}localVarHttpResponse, err
- }
-
var v {{{dataType}}}
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
if err != nil {
