Skip to content

Commit

Permalink
feat(googleapi): add response headers to Error reported by CheckMedia…
Browse files Browse the repository at this point in the history
…Response (#1781)
  • Loading branch information
BrennaEpp authored Dec 14, 2022
1 parent 6193507 commit e4271df
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions googleapi/googleapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,9 @@ func CheckMediaResponse(res *http.Response) error {
}
slurp, _ := ioutil.ReadAll(io.LimitReader(res.Body, 1<<20))
return &Error{
Code: res.StatusCode,
Body: string(slurp),
Code: res.StatusCode,
Body: string(slurp),
Header: res.Header,
}
}

Expand Down

0 comments on commit e4271df

Please sign in to comment.