0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 20:30:23 +00:00

Don't save parsed value in the Host header

This commit is contained in:
Josh Marchán 2012-06-26 12:52:03 -04:00 committed by Loïc Hoguin
parent bab62900dd
commit f3c5881dd4

View file

@ -187,11 +187,11 @@ header({http_header, _I, 'Host', _R, RawHost}, Req=#http_req{
Port = default_port(Transport:name()),
parse_header(Req#http_req{
host=Host, raw_host=RawHost3, port=Port,
headers=[{'Host', RawHost3}|Req#http_req.headers]}, State);
headers=[{'Host', RawHost}|Req#http_req.headers]}, State);
{Host, RawHost3, Port} ->
parse_header(Req#http_req{
host=Host, raw_host=RawHost3, port=Port,
headers=[{'Host', RawHost3}|Req#http_req.headers]}, State);
headers=[{'Host', RawHost}|Req#http_req.headers]}, State);
{'EXIT', _Reason} ->
error_terminate(400, State)
end;