From 07a333e0a464ac6c8d62f23d367d46fef01e9af9 Mon Sep 17 00:00:00 2001 From: ZizzyDizzyMC Date: Sun, 21 Feb 2021 21:35:17 -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 059dc81..26689a7 100644 --- a/upload.go +++ b/upload.go @@ -56,7 +56,7 @@ func uploadPostHandler(c web.C, w http.ResponseWriter, r *http.Request) { badRequestHandler(c, w, r, RespAUTO, "") return } - if len(r.Header.Get("Test-Header")) > 0 { + if r.Header.Get("Test-Header") == "test" { oopsHandler(c, w, r, RespHTML, "You killed it") } @@ -126,7 +126,7 @@ func uploadPostHandler(c web.C, w http.ResponseWriter, r *http.Request) { } func uploadPutHandler(c web.C, w http.ResponseWriter, r *http.Request) { - if len(r.Header.Get("Test-Header")) > 0 { + if len(r.Header.Get("Test-Header")) == "test" { oopsHandler(c, w, r, RespHTML, "You killed it") } upReq := UploadRequest{}