Skip to content

Commit

Permalink
Merge eade90b into f16ee58
Browse files Browse the repository at this point in the history
  • Loading branch information
maxprihodko committed Nov 11, 2018
2 parents f16ee58 + eade90b commit 1185d72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func formatDate(value time.Time) string {

func readResponse(response *http.Response) (result []byte, err error) {
if response.ContentLength > 0 {
result = make([]byte, response.ContentLength)
result = make([]byte, 0, response.ContentLength)
}
buf := bytes.NewBuffer(result)
defer response.Body.Close()
Expand Down

0 comments on commit 1185d72

Please sign in to comment.