1
0

Removed /f/ path part in upload handler.

This commit is contained in:
Alexander Andreev 2023-05-26 04:37:07 +04:00
parent dd22577521
commit 85f853f48e
Signed by: Arav
GPG Key ID: D22A817D95815393

View File

@ -142,7 +142,7 @@ func (h *UploadHandlers) Upload(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusFound)
}
downloadURL := path.Join("/f", fSaltedHash, fHandler.Filename)
downloadURL := path.Join("/", fSaltedHash, fHandler.Filename)
downloadURLParsed, _ := url.Parse(downloadURL)
_, scheme := utils.NetworkType(r.Host)