1
0
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:
squidink7 2023-07-27 04:40:45 +09:30 committed by GitHub
parent 3042857d6c
commit 94de6f62b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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