Compare commits

..

1 Commits

View File

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