From 75af664511547494543d5b3912e01687c7011572 Mon Sep 17 00:00:00 2001 From: astaxie Date: Thu, 4 Jul 2013 23:41:18 +0800 Subject: [PATCH] change r.ParseMultipartForm position --- beego.go | 2 +- router.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/beego.go b/beego.go index 2b28c331..f19b7202 100644 --- a/beego.go +++ b/beego.go @@ -13,7 +13,7 @@ import ( "time" ) -const VERSION = "0.7.0" +const VERSION = "0.7.2" var ( BeeApp *App diff --git a/router.go b/router.go index b624b542..905092df 100644 --- a/router.go +++ b/router.go @@ -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 {