mirror of
https://github.com/astaxie/beego.git
synced 2025-07-02 13:10:20 +00:00
change r.ParseMultipartForm position
This commit is contained in:
@ -257,7 +257,6 @@ 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 {
|
||||
@ -354,6 +353,7 @@ func (p *ControllerRegistor) ServeHTTP(rw http.ResponseWriter, r *http.Request)
|
||||
}
|
||||
}
|
||||
|
||||
r.ParseMultipartForm(MaxMemory)
|
||||
if runrouter != nil {
|
||||
//execute middleware filters
|
||||
for _, filter := range p.filters {
|
||||
|
Reference in New Issue
Block a user