mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 19:10:54 +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"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
const VERSION = "0.7.0"
|
const VERSION = "0.7.2"
|
||||||
|
|
||||||
var (
|
var (
|
||||||
BeeApp *App
|
BeeApp *App
|
||||||
|
@ -257,7 +257,6 @@ 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 {
|
||||||
@ -354,6 +353,7 @@ 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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user