From 85f853f48e622b8204f8b74e9a1185c36ce814e6 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Fri, 26 May 2023 04:37:07 +0400 Subject: [PATCH] Removed /f/ path part in upload handler. --- internal/http/handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/http/handlers.go b/internal/http/handlers.go index d774692..b4a5a90 100644 --- a/internal/http/handlers.go +++ b/internal/http/handlers.go @@ -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)