From bb2d6ac7774383e65cfae9991676a493ca93dc8c Mon Sep 17 00:00:00 2001 From: Eugene Paniot Date: Fri, 18 Aug 2023 15:12:46 +0100 Subject: [PATCH] Update server.lua --- http/server.lua | 6 ------ 1 file changed, 6 deletions(-) diff --git a/http/server.lua b/http/server.lua index 286be38..63ef10f 100644 --- a/http/server.lua +++ b/http/server.lua @@ -754,12 +754,6 @@ local function parse_request(req) p.error = "invalid uri" return p end - for _, path_segment in ipairs(p.path:split('/')) do - if path_segment == "." or path_segment == ".." then - p.error = "invalid uri" - return p - end - end return p end