From b16ec84e86e33696744d47e6f670b65faa42970a Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Wed, 24 May 2023 23:57:02 +0400 Subject: [PATCH] Added missing return in free space check. --- internal/http/handlers.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/http/handlers.go b/internal/http/handlers.go index 194481b..7cd0065 100644 --- a/internal/http/handlers.go +++ b/internal/http/handlers.go @@ -87,6 +87,7 @@ func (h *UploadHandlers) Upload(w http.ResponseWriter, r *http.Request) { if leftSpace < fHandler.Size { log.Println("not enough space left in storage, only", leftSpace>>20, "MiB left") web.ErrorNoSpace(utils.MainSite(r.Host), w) + return } s256 := sha256.New()