1
0
mirror of https://github.com/astaxie/beego.git synced 2024-12-22 22:20:50 +00:00
This commit is contained in:
astaxie 2013-07-07 17:45:39 +08:00
parent 75af664511
commit 461eac46b9

View File

@ -258,6 +258,8 @@ func (p *ControllerRegistor) ServeHTTP(rw http.ResponseWriter, r *http.Request)
requestPath := r.URL.Path
r.ParseMultipartForm(MaxMemory)
//user defined Handler
for pattern, c := range p.userHandlers {
if c.regex == nil && pattern == requestPath {
@ -353,7 +355,6 @@ func (p *ControllerRegistor) ServeHTTP(rw http.ResponseWriter, r *http.Request)
}
}
r.ParseMultipartForm(MaxMemory)
if runrouter != nil {
//execute middleware filters
for _, filter := range p.filters {