Skip to content
This repository was archived by the owner on Jan 12, 2020. It is now read-only.

Commit 5774509

Browse files
committed
Version 0.0.1
1 parent b39b9f6 commit 5774509

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

method-override.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
66
package methodoverride
77

88
import (
9-
"github.com/go-rs/rest-api-framework"
109
"strings"
10+
11+
"github.com/go-rs/rest-api-framework"
1112
)
1213

1314
var (
@@ -20,7 +21,9 @@ var (
2021
*/
2122
func isValidMethod(method string) bool {
2223
for _, v := range methods {
23-
return v == method
24+
if v == method {
25+
return true
26+
}
2427
}
2528
return false
2629
}

0 commit comments

Comments
 (0)