Removed /f/ path part in upload handler.
This commit is contained in:
parent
dd22577521
commit
85f853f48e
@ -142,7 +142,7 @@ func (h *UploadHandlers) Upload(w http.ResponseWriter, r *http.Request) {
|
|||||||
w.WriteHeader(http.StatusFound)
|
w.WriteHeader(http.StatusFound)
|
||||||
}
|
}
|
||||||
|
|
||||||
downloadURL := path.Join("/f", fSaltedHash, fHandler.Filename)
|
downloadURL := path.Join("/", fSaltedHash, fHandler.Filename)
|
||||||
downloadURLParsed, _ := url.Parse(downloadURL)
|
downloadURLParsed, _ := url.Parse(downloadURL)
|
||||||
|
|
||||||
_, scheme := utils.NetworkType(r.Host)
|
_, scheme := utils.NetworkType(r.Host)
|
||||||
|
Loading…
Reference in New Issue
Block a user