1
0
mirror of https://github.com/astaxie/beego.git synced 2024-12-22 23:00:50 +00:00

change r.ParseMultipartForm position

This commit is contained in:
astaxie 2013-07-04 23:41:18 +08:00
parent 174298b497
commit 75af664511
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ import (
"time"
)
const VERSION = "0.7.0"
const VERSION = "0.7.2"
var (
BeeApp *App

View File

@ -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 {