fix small bug for not return
Showing
1 changed file
with
1 additions
and
0 deletions
| ... | @@ -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) | ... | ... |
-
Please register or sign in to post a comment