Commit 75af6645 authored by astaxie's avatar astaxie

change r.ParseMultipartForm position

parent 174298b4
......@@ -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 {
......
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