mirror of
https://github.com/astaxie/beego.git
synced 2025-04-09 08:30:25 +00:00
fix small bug for not return
This commit is contained in:
parent
73d45b150c
commit
512ddf8a70
@ -326,6 +326,7 @@ func (p *ControllerRegistor) ServeHTTP(rw http.ResponseWriter, r *http.Request)
|
||||
if finfo.IsDir() && !DirectoryIndex {
|
||||
if h, ok := ErrorMaps["403"]; ok {
|
||||
h(w, r)
|
||||
return
|
||||
} else {
|
||||
w.Header().Set("Content-Type", "text/plain; charset=utf-8")
|
||||
w.WriteHeader(403)
|
||||
|
Loading…
x
Reference in New Issue
Block a user