From 5ca1a60754021576ab7b48baaea0cffe0ddfe33f Mon Sep 17 00:00:00 2001 From: ZizzyDizzyMC Date: Sun, 21 Feb 2021 21:21:42 -0500 Subject: [PATCH] Update upload.go --- upload.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/upload.go b/upload.go index 655c188..af68a13 100644 --- a/upload.go +++ b/upload.go @@ -100,7 +100,7 @@ func uploadPostHandler(c web.C, w http.ResponseWriter, r *http.Request) { i, err := strconv.ParseInt(r.Header.Get("Content-Length"), 10, 64) if err == nil { if i > Config.maxSize { - upReq.size = i + oopsHandler(c, w, r, RespJSON, "Could not upload file: ") } } } @@ -145,7 +145,7 @@ func uploadPutHandler(c web.C, w http.ResponseWriter, r *http.Request) { i, err := strconv.ParseInt(r.Header.Get("Content-Length"), 10, 64) if err == nil { if i > Config.maxSize { - upReq.size = i + oopsHandler(c, w, r, RespJSON, "Could not upload file: ") } } } @@ -227,7 +227,7 @@ func uploadRemote(c web.C, w http.ResponseWriter, r *http.Request) { i, err := strconv.ParseInt(r.Header.Get("Content-Length"), 10, 64) if err == nil { if i > Config.maxSize { - upReq.size = i + oopsHandler(c, w, r, RespJSON, "Could not upload file: ") } } }