Skip to content

Commit

Permalink
vweb: make vweb route paths case sensitive (#18973)
Browse files Browse the repository at this point in the history
  • Loading branch information
squidink7 committed Jul 26, 2023
1 parent 3042857 commit 94de6f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vlib/vweb/parse.v
Expand Up @@ -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 {
Expand Down

0 comments on commit 94de6f6

Please sign in to comment.