1
0
mirror of https://github.com/astaxie/beego.git synced 2025-08-04 06:05:32 +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" "time"
) )
const VERSION = "0.7.0" const VERSION = "0.7.2"
var ( var (
BeeApp *App BeeApp *App

View File

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