mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
vweb: make vweb route paths case sensitive (#18973)
This commit is contained in:
parent
3042857d6c
commit
94de6f62b2
@ -55,8 +55,8 @@ fn parse_attrs(name string, attrs []string) !([]http.Method, string, string, str
|
||||
if path == '' {
|
||||
path = '/${name}'
|
||||
}
|
||||
// Make path and host lowercase for case-insensitive comparisons
|
||||
return methods, path.to_lower(), middleware, host.to_lower()
|
||||
// Make host lowercase for case-insensitive comparisons
|
||||
return methods, path, middleware, host.to_lower()
|
||||
}
|
||||
|
||||
fn parse_query_from_url(url urllib.URL) map[string]string {
|
||||
|
Loading…
Reference in New Issue
Block a user