Commit 75af6645 authored by astaxie's avatar astaxie

change r.ParseMultipartForm position

parent 174298b4
...@@ -13,7 +13,7 @@ import ( ...@@ -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) ...@@ -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) ...@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment