Skip to content
This repository has been archived by the owner on Mar 18, 2023. It is now read-only.

Commit

Permalink
Don't randomize filename if Linx-Randomize is not "yes"
Browse files Browse the repository at this point in the history
  • Loading branch information
BBaoVanC committed Dec 12, 2021
1 parent a327bb8 commit c3a2f2d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions upload.go
Expand Up @@ -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)
Expand Down

0 comments on commit c3a2f2d

Please sign in to comment.