Skip to content
Snippets Groups Projects
Commit f341aa59 authored by ko_oler's avatar ko_oler
Browse files

Merge branch 'master' into feature/PRXS-951-Log

parents 4abf4c84 143766b5
Branches
Tags
No related merge requests found
...@@ -33,6 +33,7 @@ func (u *uploader) Upload(src io.Reader, upload *Upload) error { ...@@ -33,6 +33,7 @@ func (u *uploader) Upload(src io.Reader, upload *Upload) error {
if err != nil { if err != nil {
return err return err
} }
resp.Body.Close()
if resp.StatusCode != http.StatusOK { if resp.StatusCode != http.StatusOK {
return errors.New("upload request failed: " + resp.Status) return errors.New("upload request failed: " + resp.Status)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment