diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/http.lua | 4 |
1 files changed, 3 insertions, 1 deletions
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 | |||
| 209 | 209 | ||
| 210 | local function adjustheaders(reqt) | 210 | local function adjustheaders(reqt) |
| 211 | -- default headers | 211 | -- default headers |
| 212 | local host = reqt.host | ||
| 213 | if reqt.port then host = host .. ":" .. reqt.port end | ||
| 212 | local lower = { | 214 | local lower = { |
| 213 | ["user-agent"] = _M.USERAGENT, | 215 | ["user-agent"] = _M.USERAGENT, |
| 214 | ["host"] = reqt.host, | 216 | ["host"] = host, |
| 215 | ["connection"] = "close, TE", | 217 | ["connection"] = "close, TE", |
| 216 | ["te"] = "trailers" | 218 | ["te"] = "trailers" |
| 217 | } | 219 | } |
