From 7635abf2dc021fef878a4a4bdd67ed2924f807c2 Mon Sep 17 00:00:00 2001 From: ZizzyDizzyMC Date: Sun, 21 Feb 2021 20:56:38 -0500 Subject: [PATCH] Update upload.go --- upload.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/upload.go b/upload.go index 9d6a0ae..6d850d3 100644 --- a/upload.go +++ b/upload.go @@ -230,7 +230,7 @@ func uploadRemote(c web.C, w http.ResponseWriter, r *http.Request) { func uploadHeaderProcess(r *http.Request, upReq *UploadRequest) { if len(r.Header.Get("Content-Length")) > 0 { i, err := strconv.ParseInt(r.Header.Get("Content-Length"), 10, 64) - if err = nil { + if err == nil { if i > Config.maxSize { upReq.size = i }