summaryrefslogtreecommitdiff
path: root/upload.go
diff options
context:
space:
mode:
authorAlexander Neonxp Kiryukhin <i@neonxp.ru>2024-08-28 15:22:01 +0300
committerAlexander Neonxp Kiryukhin <i@neonxp.ru>2024-08-28 15:22:01 +0300
commit670fadcfbcef7d139ebb81e3d4aa5f8ccac804ee (patch)
tree38e9139a43ee68ba03dfcb5d5b7535ba9efd55e1 /upload.go
parent094e63a2ef716876fc299d03be02f90218266d21 (diff)
separate html dirHEADmaster
Diffstat (limited to 'upload.go')
-rw-r--r--upload.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/upload.go b/upload.go
index 719e519..95a6913 100644
--- a/upload.go
+++ b/upload.go
@@ -36,7 +36,7 @@ func uploadHandler(w http.ResponseWriter, r *http.Request) {
h.Set("Content-Type", "text/plain; charset=utf-8")
h.Set("X-Content-Type-Options", "nosniff")
w.WriteHeader(http.StatusCreated)
- u, err := url.JoinPath(host, section, uid)
+ u, err := url.JoinPath(host, "s", section, uid)
if err != nil {
log.Println(err)
http.Error(w, "can't get file url", http.StatusInternalServerError)