Skip to content
Snippets Groups Projects
Commit 143766b5 authored by Pavel Antonov's avatar Pavel Antonov :asterisk:
Browse files

fix: Исправлена потенциальная утечка ресурсов в HTTP-загрузчике файлов...

fix: Исправлена потенциальная утечка ресурсов в HTTP-загрузчике файлов (используется в сервисе Images)

Close #PRXS-1977
parents 250b7e3f 0a120351
No related branches found
No related tags found
No related merge requests found
......@@ -33,6 +33,7 @@ func (u *uploader) Upload(src io.Reader, upload *Upload) error {
if err != nil {
return err
}
resp.Body.Close()
if resp.StatusCode != http.StatusOK {
return errors.New("upload request failed: " + resp.Status)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment