summaryrefslogtreecommitdiff
path: root/upload.go
diff options
context:
space:
mode:
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)