Update upload.go

This commit is contained in:
ZizzyDizzyMC 2021-02-21 21:35:17 -05:00
parent dcf2b4fc29
commit 07a333e0a4
1 changed files with 2 additions and 2 deletions

View File

@ -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{}