url to lower case

This commit is contained in:
JessonChan 2016-03-16 07:53:36 +08:00
parent 565c4a4d59
commit 94599013fc
1 changed files with 1 additions and 1 deletions

View File

@ -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