aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDiego Nehab <diego@tecgraf.puc-rio.br>2004-11-28 19:53:17 +0000
committerDiego Nehab <diego@tecgraf.puc-rio.br>2004-11-28 19:53:17 +0000
commit6abfbc742b52ef2f94bc5120781d346200535f63 (patch)
treeb62f70f93b301701c22f589cd9217d72e191889f /src
parentbf563ac857b77eb33412a37e1ad94bad6cbbf0c9 (diff)
downloadluasocket-6abfbc742b52ef2f94bc5120781d346200535f63.tar.gz
luasocket-6abfbc742b52ef2f94bc5120781d346200535f63.tar.bz2
luasocket-6abfbc742b52ef2f94bc5120781d346200535f63.zip
Host is overridable.
Diffstat (limited to 'src')
-rw-r--r--src/http.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/http.lua b/src/http.lua
index a15ea69..87a9d9a 100644
--- a/src/http.lua
+++ b/src/http.lua
@@ -146,8 +146,7 @@ local function adjustheaders(headers, host)
146 lower[string.lower(i)] = v 146 lower[string.lower(i)] = v
147 end 147 end
148 lower["user-agent"] = lower["user-agent"] or USERAGENT 148 lower["user-agent"] = lower["user-agent"] or USERAGENT
149 -- these cannot be overriden 149 lower["host"] = lower["host"] or host
150 lower["host"] = host
151 return lower 150 return lower
152end 151end
153 152