2f754455 by astaxie

when runmode is dev it will show warning ingo

if have a attack url, the info is
1 parent 43057a2f
...@@ -461,7 +461,9 @@ func (p *ControllerRegistor) ServeHTTP(rw http.ResponseWriter, r *http.Request) ...@@ -461,7 +461,9 @@ func (p *ControllerRegistor) ServeHTTP(rw http.ResponseWriter, r *http.Request)
461 file := staticDir + r.URL.Path[len(prefix):] 461 file := staticDir + r.URL.Path[len(prefix):]
462 finfo, err := os.Stat(file) 462 finfo, err := os.Stat(file)
463 if err != nil { 463 if err != nil {
464 if RunMode == "dev" {
464 Warn(err) 465 Warn(err)
466 }
465 http.NotFound(w, r) 467 http.NotFound(w, r)
466 return 468 return
467 } 469 }
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!