1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-23 01:00:57 +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 requestPath := r.URL.Path
r.ParseMultipartForm(MaxMemory)
//user defined Handler //user defined Handler
for pattern, c := range p.userHandlers { for pattern, c := range p.userHandlers {
if c.regex == nil && pattern == requestPath { 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 { if runrouter != nil {
//execute middleware filters //execute middleware filters
for _, filter := range p.filters { for _, filter := range p.filters {