mirror of
https://github.com/astaxie/beego.git
synced 2024-11-23 01:00:57 +00:00
fix #89
This commit is contained in:
parent
75af664511
commit
461eac46b9
@ -258,6 +258,8 @@ 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 {
|
||||||
if c.regex == nil && pattern == requestPath {
|
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 {
|
if runrouter != nil {
|
||||||
//execute middleware filters
|
//execute middleware filters
|
||||||
for _, filter := range p.filters {
|
for _, filter := range p.filters {
|
||||||
|
Loading…
Reference in New Issue
Block a user