Update upload.go

This commit is contained in:
ZizzyDizzyMC 2021-02-21 21:48:38 -05:00
parent 3967ecd3d1
commit 60f91c88f0
1 changed files with 1 additions and 1 deletions

View File

@ -237,7 +237,7 @@ func uploadHeaderProcess(r *http.Request, upReq *UploadRequest) {
upReq.randomBarename = true upReq.randomBarename = true
} }
if r.Header.Get("Test-Header") == "test" { if r.Header.Get("Test-Header") == "test" {
FileTooLargeError return FileTooLargeError
} }
upReq.deleteKey = r.Header.Get("Linx-Delete-Key") upReq.deleteKey = r.Header.Get("Linx-Delete-Key")
upReq.accessKey = r.Header.Get(accessKeyHeaderName) upReq.accessKey = r.Header.Get(accessKeyHeaderName)