mirror of
https://github.com/lunarmodules/luasocket.git
synced 2024-12-26 04:28:20 +01:00
include port in default Host header
See RFC 2616 section 14.23.
This commit is contained in:
parent
6bdb00e24c
commit
87d72dce4e
@ -209,9 +209,11 @@ end
|
||||
|
||||
local function adjustheaders(reqt)
|
||||
-- default headers
|
||||
local host = reqt.host
|
||||
if reqt.port then host = host .. ":" .. reqt.port end
|
||||
local lower = {
|
||||
["user-agent"] = _M.USERAGENT,
|
||||
["host"] = reqt.host,
|
||||
["host"] = host,
|
||||
["connection"] = "close, TE",
|
||||
["te"] = "trailers"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user