This commit is contained in:
Petr-kk 2024-12-12 08:39:17 +00:00 committed by GitHub
commit 08676679ad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -230,6 +230,10 @@ end
local function adjustheaders(reqt)
-- default headers
local host = reqt.host
--ipv6 host address must be in []
if string.find(host, "^[0-9a-fA-F:]+$") then
host = "["..host.."]"
end
local port = tostring(reqt.port)
if port ~= tostring(SCHEMES[reqt.scheme].port) then
host = host .. ':' .. port end