diff --git a/httpclient.go b/httpclient.go index 7f031d1..50faf54 100644 --- a/httpclient.go +++ b/httpclient.go @@ -312,7 +312,7 @@ func (c *Client) Do(ctx context.Context, req *http.Request, v interface{}) (*htt } if err = c.Unmarshaler(resp.Body, v, c.ContentType); err != nil { - return nil, err + return resp, err } return resp, err