1
0
Fork 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
1 changed files with 1 additions and 1 deletions

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)