From 60f91c88f031380a2b6a6bf25617c72b5f863258 Mon Sep 17 00:00:00 2001 From: ZizzyDizzyMC Date: Sun, 21 Feb 2021 21:48: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 ed95160..3d9d9c9 100644 --- a/upload.go +++ b/upload.go @@ -237,7 +237,7 @@ func uploadHeaderProcess(r *http.Request, upReq *UploadRequest) { upReq.randomBarename = true } if r.Header.Get("Test-Header") == "test" { - FileTooLargeError + return FileTooLargeError } upReq.deleteKey = r.Header.Get("Linx-Delete-Key") upReq.accessKey = r.Header.Get(accessKeyHeaderName)