From 486e4ed8361093eb2e84608cc9c211a18ce5f31d Mon Sep 17 00:00:00 2001 From: ZizzyDizzyMC Date: Sun, 21 Feb 2021 20:45:13 -0500 Subject: [PATCH] Update upload.go --- upload.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/upload.go b/upload.go index 719eb2c..dd0be28 100644 --- a/upload.go +++ b/upload.go @@ -229,8 +229,8 @@ 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 (strconf.Atoi(r.Header.Get("Content-Length")) > Config.maxSize { - upReq.size = r.Header.Get("Content-Length") + if strconv.Atoi(r.Header.Get("Content-Length")) > Config.maxSize { + upReq.size = strconv.Atoi(r.Header.Get("Content-Length")) } } if r.Header.Get("Linx-Randomize") == "yes" {