From c3a2f2d132c7a3a98fc15a83b710dff086fc271a Mon Sep 17 00:00:00 2001 From: BBaoVanC Date: Sun, 12 Dec 2021 17:19:35 -0600 Subject: [PATCH] Don't randomize filename if Linx-Randomize is not "yes" --- upload.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/upload.go b/upload.go index bd2b948..ed55370 100644 --- a/upload.go +++ b/upload.go @@ -229,6 +229,8 @@ func uploadRemote(c web.C, w http.ResponseWriter, r *http.Request) { func uploadHeaderProcess(r *http.Request, upReq *UploadRequest) { if r.Header.Get("Linx-Randomize") == "yes" { upReq.randomBarename = true + } else { + upReq.randomBarename = false } upReq.deleteKey = r.Header.Get("Linx-Delete-Key") upReq.accessKey = r.Header.Get(accessKeyHeaderName)