# HG changeset patch # User Matthew Wild # Date 1779710811 -3600 # Node ID 948bda5ed45fde31e37ac9506ea5e99329a8a70f # Parent 58ca617f68d52cc6616c015443f2d1a4a953a1e1 net.http.parser: Include final component in path normalization check This matches the pattern that is already used by net.http.files when normalizing the path. diff -r 58ca617f68d5 -r 948bda5ed45f net/http/parser.lua --- a/net/http/parser.lua Mon May 25 11:37:47 2026 +0100 +++ b/net/http/parser.lua Mon May 25 13:06:51 2026 +0100 @@ -10,7 +10,7 @@ path = "/"..path; end local level = 0; - for component in path:gmatch("([^/]+)/") do + for component in path:gmatch("([^/]+)") do if component == ".." then level = level - 1; elseif component ~= "." then