Compare commits

..

2 Commits

Author SHA1 Message Date
Petr-kk
104b7b85c0
Merge e8e2ff5915 into 1fad162690 2024-12-12 14:44:02 +00:00
Petr-kk
e8e2ff5915
Update src/http.lua
Co-authored-by: Thijs Schreijer <thijs@thijsschreijer.nl>
2024-12-12 15:44:00 +01:00

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 string.find(host, "^[0-9a-fA-F:]+$") then if host:find(":", 1, true) then
host = "["..host.."]" host = "["..host.."]"
end end
local port = tostring(reqt.port) local port = tostring(reqt.port)