From 6d67eba9e62038123a8a926cbd6566a6dcb9e9c7 Mon Sep 17 00:00:00 2001 From: Carl Jackson Date: Sat, 22 Mar 2014 21:39:22 -0700 Subject: [PATCH] Always uppercase the method I have no idea if net/http does this for you already, but I may as well do it myself too... --- web/router.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/router.go b/web/router.go index 36d8141..63198af 100644 --- a/web/router.go +++ b/web/router.go @@ -113,7 +113,7 @@ func parseHandler(h interface{}) Handler { } func httpMethod(mname string) method { - switch mname { + switch strings.ToUpper(mname) { case "CONNECT": return mCONNECT case "DELETE":