Commit 94599013 authored by JessonChan's avatar JessonChan

url to lower case

parent 565c4a4d
......@@ -618,7 +618,7 @@ func (p *ControllerRegister) ServeHTTP(rw http.ResponseWriter, r *http.Request)
var urlPath = r.URL.Path
if !BConfig.RouterCaseSensitive {
urlPath = strings.ToLower(r.URL.Path)
urlPath = strings.ToLower(urlPath)
}
// filter wrong http method
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment