Commit 461eac46 authored by astaxie's avatar astaxie

fix #89

parent 75af6645
......@@ -258,6 +258,8 @@ 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 {
if c.regex == nil && pattern == requestPath {
......@@ -353,7 +355,6 @@ 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