Host is overridable.

This commit is contained in:
Diego Nehab 2004-11-28 19:53:17 +00:00
parent bf563ac857
commit 6abfbc742b

View File

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