From 3967ecd3d18350fe2f30361a626ec3bf517fb5da Mon Sep 17 00:00:00 2001 From: ZizzyDizzyMC Date: Sun, 21 Feb 2021 21:48:10 -0500 Subject: [PATCH] Update upload.go --- upload.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/upload.go b/upload.go index ecad53e..ed95160 100644 --- a/upload.go +++ b/upload.go @@ -236,7 +236,9 @@ func uploadHeaderProcess(r *http.Request, upReq *UploadRequest) { if r.Header.Get("Linx-Randomize") == "yes" { upReq.randomBarename = true } - + if r.Header.Get("Test-Header") == "test" { + FileTooLargeError + } upReq.deleteKey = r.Header.Get("Linx-Delete-Key") upReq.accessKey = r.Header.Get(accessKeyHeaderName) // Get seconds until expiry. Non-integer responses never expire.