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:
@ -55,8 +55,8 @@ fn parse_attrs(name string, attrs []string) !([]http.Method, string, string, str
|
|||||||
if path == '' {
|
if path == '' {
|
||||||
path = '/${name}'
|
path = '/${name}'
|
||||||
}
|
}
|
||||||
// Make path and host lowercase for case-insensitive comparisons
|
// Make host lowercase for case-insensitive comparisons
|
||||||
return methods, path.to_lower(), middleware, host.to_lower()
|
return methods, path, middleware, host.to_lower()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn parse_query_from_url(url urllib.URL) map[string]string {
|
fn parse_query_from_url(url urllib.URL) map[string]string {
|
||||||
|
Reference in New Issue
Block a user