Update upload.go
This commit is contained in:
parent
dcf2b4fc29
commit
07a333e0a4
|
@ -56,7 +56,7 @@ func uploadPostHandler(c web.C, w http.ResponseWriter, r *http.Request) {
|
||||||
badRequestHandler(c, w, r, RespAUTO, "")
|
badRequestHandler(c, w, r, RespAUTO, "")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if len(r.Header.Get("Test-Header")) > 0 {
|
if r.Header.Get("Test-Header") == "test" {
|
||||||
oopsHandler(c, w, r, RespHTML, "You killed it")
|
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) {
|
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")
|
oopsHandler(c, w, r, RespHTML, "You killed it")
|
||||||
}
|
}
|
||||||
upReq := UploadRequest{}
|
upReq := UploadRequest{}
|
||||||
|
|
Loading…
Reference in New Issue