diff options
author | Alexander Neonxp Kiryukhin <i@neonxp.ru> | 2024-08-28 15:22:01 +0300 |
---|---|---|
committer | Alexander Neonxp Kiryukhin <i@neonxp.ru> | 2024-08-28 15:22:01 +0300 |
commit | 670fadcfbcef7d139ebb81e3d4aa5f8ccac804ee (patch) | |
tree | 38e9139a43ee68ba03dfcb5d5b7535ba9efd55e1 /upload.go | |
parent | 094e63a2ef716876fc299d03be02f90218266d21 (diff) |
Diffstat (limited to 'upload.go')
-rw-r--r-- | upload.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |