fix #89
Showing
1 changed file
with
2 additions
and
1 deletions
| ... | @@ -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 { | ... | ... |
-
Please register or sign in to post a comment