1
0
mirror of https://github.com/astaxie/beego.git synced 2025-07-06 06:10:18 +00:00

Change HTTPMETHOD type

This commit is contained in:
hao.hu
2017-11-30 01:43:50 +08:00
parent c3a81a23f9
commit 646acc423e
2 changed files with 28 additions and 28 deletions

2
app.go
View File

@ -254,7 +254,7 @@ func Router(rootpath string, c ControllerInterface, mappingMethods ...string) *A
func UnregisterFixedRoute(fixedRoute string, method string) *App {
subPaths := splitPath(fixedRoute)
if method == "" || method == "*" {
for _, m := range HTTPMETHOD {
for m := range HTTPMETHOD {
if _, ok := BeeApp.Handlers.routers[m]; !ok {
continue
}