From 94de6f62b2b96b147257c3de2c184ea88f626ce4 Mon Sep 17 00:00:00 2001 From: squidink7 <56238661+squidink7@users.noreply.github.com> Date: Thu, 27 Jul 2023 04:40:45 +0930 Subject: [PATCH] vweb: make vweb route paths case sensitive (#18973) --- vlib/vweb/parse.v | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vlib/vweb/parse.v b/vlib/vweb/parse.v index 9a82e01011628d..05a13b40772034 100644 --- a/vlib/vweb/parse.v +++ b/vlib/vweb/parse.v @@ -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 {