mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 19:00:54 +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 finfo.IsDir() && !DirectoryIndex {
|
||||||
if h, ok := ErrorMaps["403"]; ok {
|
if h, ok := ErrorMaps["403"]; ok {
|
||||||
h(w, r)
|
h(w, r)
|
||||||
|
return
|
||||||
} else {
|
} else {
|
||||||
w.Header().Set("Content-Type", "text/plain; charset=utf-8")
|
w.Header().Set("Content-Type", "text/plain; charset=utf-8")
|
||||||
w.WriteHeader(403)
|
w.WriteHeader(403)
|
||||||
|
Loading…
Reference in New Issue
Block a user