512ddf8a by astaxie

fix small bug for not return

1 parent 73d45b15
...@@ -326,6 +326,7 @@ func (p *ControllerRegistor) ServeHTTP(rw http.ResponseWriter, r *http.Request) ...@@ -326,6 +326,7 @@ func (p *ControllerRegistor) ServeHTTP(rw http.ResponseWriter, r *http.Request)
326 if finfo.IsDir() && !DirectoryIndex { 326 if finfo.IsDir() && !DirectoryIndex {
327 if h, ok := ErrorMaps["403"]; ok { 327 if h, ok := ErrorMaps["403"]; ok {
328 h(w, r) 328 h(w, r)
329 return
329 } else { 330 } else {
330 w.Header().Set("Content-Type", "text/plain; charset=utf-8") 331 w.Header().Set("Content-Type", "text/plain; charset=utf-8")
331 w.WriteHeader(403) 332 w.WriteHeader(403)
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!