Skip to content

Commit

Permalink
fix uploads (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
craftamap authored Nov 2, 2020
1 parent 49b59b0 commit 9820e37
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,10 @@ func (c *Client) doRequest(req *http.Request, emptyResponse bool) (interface{},
if err != nil {
return nil, err
}
if emptyResponse {
return nil, nil
}

defer resBody.Close()

var result interface{}
Expand Down

0 comments on commit 9820e37

Please sign in to comment.