Update upload.go

This commit is contained in:
ZizzyDizzyMC 2021-02-21 21:48:10 -05:00
parent 2842d0c9dc
commit 3967ecd3d1
1 changed files with 3 additions and 1 deletions

View File

@ -236,7 +236,9 @@ func uploadHeaderProcess(r *http.Request, upReq *UploadRequest) {
if r.Header.Get("Linx-Randomize") == "yes" { if r.Header.Get("Linx-Randomize") == "yes" {
upReq.randomBarename = true upReq.randomBarename = true
} }
if r.Header.Get("Test-Header") == "test" {
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)
// Get seconds until expiry. Non-integer responses never expire. // Get seconds until expiry. Non-integer responses never expire.