Skip to content

Commit

Permalink
Update src/http.lua
Browse files Browse the repository at this point in the history
Co-authored-by: Thijs Schreijer <[email protected]>
  • Loading branch information
Petr-kk and Tieske authored Dec 12, 2024
1 parent 9c087f6 commit e8e2ff5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/http.lua
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ 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
if host:find(":", 1, true) then
host = "["..host.."]"
end
local port = tostring(reqt.port)
Expand Down

0 comments on commit e8e2ff5

Please sign in to comment.