From fb1ec8a64cd869d83a6d200fd49dd14ab048589e Mon Sep 17 00:00:00 2001 From: ZizzyDizzyMC Date: Sun, 21 Feb 2021 20:43: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 bca37e6..719eb2c 100644 --- a/upload.go +++ b/upload.go @@ -229,7 +229,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 { - if r.Header.Get("Content-Length") > Config.maxSize { + if (strconf.Atoi(r.Header.Get("Content-Length")) > Config.maxSize { upReq.size = r.Header.Get("Content-Length") } }