commit | dd3b4e402486da74fed7e47b73d373f346bc2a46 | [log] [tgz] |
---|---|---|
author | Julien Schmidt <github@julienschmidt.com> | Sun Jan 04 13:25:43 2015 +0800 |
committer | Julien Schmidt <github@julienschmidt.com> | Sun Jan 04 13:25:43 2015 +0800 |
tree | a3d96a1e7262796310c4807a51f75efd1b4376ab | |
parent | 5945ad952484e0527ec953e8879139713449e6b0 [diff] |
router: Change 405 status text
diff --git a/router.go b/router.go index 8d69383..759254b 100644 --- a/router.go +++ b/router.go
@@ -320,7 +320,7 @@ } if handle, _, _ := r.trees[method].getValue(req.URL.Path); handle != nil { - http.Error(w, "405 method not allowed", http.StatusMethodNotAllowed) + http.Error(w, "Method not allowed", http.StatusMethodNotAllowed) return } }