Skip to content

Commit

Permalink
Update server.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
eugenepaniot authored Aug 18, 2023
1 parent 6be78ef commit bb2d6ac
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions http/server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bb2d6ac

Please sign in to comment.