diff --git a/src/http.lua b/src/http.lua index f83dcc5..1d0eb50 100644 --- a/src/http.lua +++ b/src/http.lua @@ -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" }