From 718dc08ca71f407f1ee0659079af2bfb8ecd4ecf Mon Sep 17 00:00:00 2001 From: ZizzyDizzyMC Date: Sun, 21 Feb 2021 21:57:53 -0500 Subject: [PATCH] Update upload.go --- upload.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/upload.go b/upload.go index 7256101..4cc16ab 100644 --- a/upload.go +++ b/upload.go @@ -246,14 +246,6 @@ func uploadHeaderProcess(r *http.Request, upReq *UploadRequest) { if r.Header.Get("Linx-Randomize") == "yes" { upReq.randomBarename = true } - if len(r.Header.Get("Content-Length")) > 0 { - i, err := strconv.ParseInt(r.Header.Get("Content-Length"), 10, 64) - if err == nil { - if i > Config.maxSize { - oopsHandler(c, w, r, RespHTML, "Could not upload file: File too large") - } - } - } upReq.deleteKey = r.Header.Get("Linx-Delete-Key") upReq.accessKey = r.Header.Get(accessKeyHeaderName) // Get seconds until expiry. Non-integer responses never expire.