summaryrefslogtreecommitdiff
path: root/src/rhimportd/routeWeb.go
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-07-23 16:34:39 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-07-23 16:34:39 (GMT)
commitbb9497361b566884a1e4cb6d76a6f539383bd32c (patch)
treed8dbf2a8fa4e98258ebe5aa6fb36f8e72e018d66 /src/rhimportd/routeWeb.go
parent2f2d09ea5aa99f1c80b12fc4e088ffc2248d690b (diff)
greatly simplified web uploads
Diffstat (limited to 'src/rhimportd/routeWeb.go')
-rw-r--r--src/rhimportd/routeWeb.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rhimportd/routeWeb.go b/src/rhimportd/routeWeb.go
index 22db1d7..d0582a2 100644
--- a/src/rhimportd/routeWeb.go
+++ b/src/rhimportd/routeWeb.go
@@ -50,7 +50,7 @@ func StartWebRouter(addr, staticDir string, conf *rhimport.Config, db *rddb.DBCh
// http.Handle("/trusted/simple", webHandler{conf, db, sessions, true, webSimpleHandler})
http.Handle("/public/simple", webHandler{conf, db, sessions, false, webSimpleHandler})
http.Handle("/public/socket", webHandler{conf, db, sessions, false, webSocketHandler})
- http.Handle("/public/upload", webHandler{conf, db, sessions, false, webUploadHandler})
+ http.Handle("/public/upload/", http.StripPrefix("/public/upload/", webHandler{conf, db, sessions, false, webUploadHandler}))
rhl.Println("web-router: listening on", addr)
server := &http.Server{Addr: addr, ReadTimeout: 2 * time.Hour, WriteTimeout: 2 * time.Hour}