From 6abfbc742b52ef2f94bc5120781d346200535f63 Mon Sep 17 00:00:00 2001 From: Diego Nehab Date: Sun, 28 Nov 2004 19:53:17 +0000 Subject: [PATCH] Host is overridable. --- src/http.lua | 3 +-- 1 file changed, 1 insertion(+), 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) lower[string.lower(i)] = v end lower["user-agent"] = lower["user-agent"] or USERAGENT - -- these cannot be overriden - lower["host"] = host + lower["host"] = lower["host"] or host return lower end