From 58f67bf42e8877b05b5686890f81dbc594514e46 Mon Sep 17 00:00:00 2001 From: Me Date: Wed, 10 Aug 2022 02:07:17 +0200 Subject: [PATCH] fixed a tiny mistake in location picker --- srcs/webserv/response.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srcs/webserv/response.cpp b/srcs/webserv/response.cpp index 3e3820a..591e58a 100644 --- a/srcs/webserv/response.cpp +++ b/srcs/webserv/response.cpp @@ -301,7 +301,7 @@ if no path coresponds then use the most correct one } else { - if (path.size() < it->path.size()) + if (path.size() <= it->path.size()) { std::cout << "path is missing a /\n"; if (it->path.compare(0, path.size(), path) == 0)