This website works better with JavaScript.
Home
Explore
Help
Sign In
brettlangdon
/
pypihub
mirror of
https://github.com/brettlangdon/pypihub.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Projects
0
Releases
1
Wiki
Activity
Browse Source
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...
Carl Jackson
12 years ago
parent
4ed96805c3
commit
6d67eba9e6
1 changed files
with
1 additions
and
1 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
web/router.go
+ 1
- 1
web/router.go
View File
@ -113,7 +113,7 @@ func parseHandler(h interface{}) Handler {
}
}
func
httpMethod
(
mname
string
)
method
{
func
httpMethod
(
mname
string
)
method
{
switch
mname
{
switch
strings
.
ToUpper
(
mname
)
{
case
"CONNECT"
:
case
"CONNECT"
:
return
mCONNECT
return
mCONNECT
case
"DELETE"
:
case
"DELETE"
:
Write
Preview
Loading…
Cancel
Save