mirror of
https://github.com/ZizzyDizzyMC/linx-server.git
synced 2026-07-17 16:36:51 +00:00
Update upload.go
This commit is contained in:
parent
dcf2b4fc29
commit
07a333e0a4
1 changed files with 2 additions and 2 deletions
|
|
@ -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{}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue