From 0a120351fae86c0465fdc8ccbd7b1c079f323e63 Mon Sep 17 00:00:00 2001 From: Danis Kirasirov <dbgbbu@gmail.com> Date: Mon, 29 Jan 2024 10:54:43 +0300 Subject: [PATCH] =?UTF-8?q?=D0=97=D0=B0=D0=BA=D1=80=D1=8B=D1=82=D0=BE=20?= =?UTF-8?q?=D1=82=D0=B5=D0=BB=D0=BE=20=D0=B7=D0=B0=D0=BF=D1=80=D0=BE=D1=81?= =?UTF-8?q?=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/files/uploader.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/files/uploader.go b/pkg/files/uploader.go index 5b03f62a..a26b4cea 100644 --- a/pkg/files/uploader.go +++ b/pkg/files/uploader.go @@ -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) -- GitLab