mirror of
https://github.com/astaxie/beego.git
synced 2025-07-02 13:30:19 +00:00
fix #284
This commit is contained in:
@ -461,6 +461,8 @@ func (p *ControllerRegistor) ServeHTTP(rw http.ResponseWriter, r *http.Request)
|
||||
file := staticDir + r.URL.Path[len(prefix):]
|
||||
finfo, err := os.Stat(file)
|
||||
if err != nil {
|
||||
Warn(err)
|
||||
http.NotFound(w, r)
|
||||
return
|
||||
}
|
||||
//if the request is dir and DirectoryIndex is false then
|
||||
|
Reference in New Issue
Block a user