Allow /upload/ for PUT requests without filename

This commit is contained in:
andreimarcu 2015-10-15 16:02:46 -04:00
parent 120909ce46
commit 0d365409d0
1 changed files with 1 additions and 0 deletions

View File

@ -138,6 +138,7 @@ func setup() *web.Mux {
mux.Post("/upload", uploadPostHandler)
mux.Post("/upload/", uploadPostHandler)
mux.Put("/upload", uploadPutHandler)
mux.Put("/upload/", uploadPutHandler)
mux.Put("/upload/:name", uploadPutHandler)
mux.Delete("/:name", deleteHandler)