Skip to content

Commit

Permalink
Merge pull request #6 from marcsauter/master
Browse files Browse the repository at this point in the history
in Do() return response even if Unmarshaler fails
  • Loading branch information
marcsauter authored Mar 22, 2018
2 parents 1ece438 + 998da1d commit dbab8b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion httpclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dbab8b0

Please sign in to comment.