Update upload.go

This commit is contained in:
ZizzyDizzyMC 2021-02-09 22:47:08 -05:00
parent f87914a2a2
commit 5effb947e3
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ func uploadPostHandler(c web.C, w http.ResponseWriter, r *http.Request) {
upReq.expiry = parseExpiry(r.PostFormValue("expires")) upReq.expiry = parseExpiry(r.PostFormValue("expires"))
upReq.accessKey = r.PostFormValue(accessKeyParamName) upReq.accessKey = r.PostFormValue(accessKeyParamName)
upReq.srcIp = r.Header.get("X-Forwarded-For") upReq.srcIp := r.Header.get("X-Forwarded-For")
if r.PostFormValue("randomize") == "true" { if r.PostFormValue("randomize") == "true" {
upReq.randomBarename = true upReq.randomBarename = true
} }