mirror of
https://github.com/lunarmodules/luasocket.git
synced 2024-12-27 04:48:21 +01:00
Compare commits
1 Commits
104b7b85c0
...
08676679ad
Author | SHA1 | Date | |
---|---|---|---|
|
08676679ad |
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user