Merge pull request #74 from catwell/pull-hostport

Include port in default Host header
This commit is contained in:
Diego Nehab 2013-09-09 09:54:08 -07:00
commit 244e5d34a0

View File

@ -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"
}