1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-22 12:00:55 +00:00

url to lower case

This commit is contained in:
JessonChan 2016-03-16 07:53:36 +08:00
parent 565c4a4d59
commit 94599013fc

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