mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 13:20:55 +00:00
change r.ParseMultipartForm position
This commit is contained in:
parent
174298b497
commit
75af664511
2
beego.go
2
beego.go
@ -13,7 +13,7 @@ import (
|
||||
"time"
|
||||
)
|
||||
|
||||
const VERSION = "0.7.0"
|
||||
const VERSION = "0.7.2"
|
||||
|
||||
var (
|
||||
BeeApp *App
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user