From 0d365409d0fcf608219e908635a25e6707ed0626 Mon Sep 17 00:00:00 2001 From: andreimarcu Date: Thu, 15 Oct 2015 16:02:46 -0400 Subject: [PATCH] Allow /upload/ for PUT requests without filename --- server.go | 1 + 1 file changed, 1 insertion(+) diff --git a/server.go b/server.go index e2fac73..739aefb 100644 --- a/server.go +++ b/server.go @@ -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)