mirror of
https://github.com/lunarmodules/luasocket.git
synced 2024-12-27 04:48:21 +01:00
Host is overridable.
This commit is contained in:
parent
bf563ac857
commit
6abfbc742b
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user