mirror of
https://github.com/astaxie/beego.git
synced 2024-11-25 17:10:54 +00:00
url to lower case
This commit is contained in:
parent
565c4a4d59
commit
94599013fc
@ -618,7 +618,7 @@ func (p *ControllerRegister) ServeHTTP(rw http.ResponseWriter, r *http.Request)
|
|||||||
var urlPath = r.URL.Path
|
var urlPath = r.URL.Path
|
||||||
|
|
||||||
if !BConfig.RouterCaseSensitive {
|
if !BConfig.RouterCaseSensitive {
|
||||||
urlPath = strings.ToLower(r.URL.Path)
|
urlPath = strings.ToLower(urlPath)
|
||||||
}
|
}
|
||||||
|
|
||||||
// filter wrong http method
|
// filter wrong http method
|
||||||
|
Loading…
Reference in New Issue
Block a user