461eac46 by astaxie

fix #89

1 parent 75af6645
...@@ -258,6 +258,8 @@ func (p *ControllerRegistor) ServeHTTP(rw http.ResponseWriter, r *http.Request) ...@@ -258,6 +258,8 @@ func (p *ControllerRegistor) ServeHTTP(rw http.ResponseWriter, r *http.Request)
258 258
259 requestPath := r.URL.Path 259 requestPath := r.URL.Path
260 260
261 r.ParseMultipartForm(MaxMemory)
262
261 //user defined Handler 263 //user defined Handler
262 for pattern, c := range p.userHandlers { 264 for pattern, c := range p.userHandlers {
263 if c.regex == nil && pattern == requestPath { 265 if c.regex == nil && pattern == requestPath {
...@@ -353,7 +355,6 @@ func (p *ControllerRegistor) ServeHTTP(rw http.ResponseWriter, r *http.Request) ...@@ -353,7 +355,6 @@ func (p *ControllerRegistor) ServeHTTP(rw http.ResponseWriter, r *http.Request)
353 } 355 }
354 } 356 }
355 357
356 r.ParseMultipartForm(MaxMemory)
357 if runrouter != nil { 358 if runrouter != nil {
358 //execute middleware filters 359 //execute middleware filters
359 for _, filter := range p.filters { 360 for _, filter := range p.filters {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!