mirror of
https://github.com/astaxie/beego.git
synced 2025-07-03 17:10:18 +00:00
beego: fix the namespace cond
This commit is contained in:
@ -763,6 +763,9 @@ func (p *ControllerRegistor) ServeHTTP(rw http.ResponseWriter, r *http.Request)
|
||||
if !findrouter {
|
||||
for _, route := range p.fixrouters {
|
||||
n := len(requestPath)
|
||||
if n == 0 {
|
||||
continue
|
||||
}
|
||||
if requestPath == route.pattern {
|
||||
runMethod = p.getRunMethod(r.Method, context, route)
|
||||
if runMethod != "" {
|
||||
|
Reference in New Issue
Block a user