Compare commits

..

1 Commits

Author SHA1 Message Date
Petr-kk
08676679ad
Merge 9c087f6b4e into 1fad162690 2024-12-12 08:39:17 +00:00

View File

@ -231,7 +231,7 @@ local function adjustheaders(reqt)
-- default headers
local host = reqt.host
--ipv6 host address must be in []
if host:find(":", 1, true) then
if string.find(host, "^[0-9a-fA-F:]+$") then
host = "["..host.."]"
end
local port = tostring(reqt.port)