Skip to content

Commit

Permalink
Don't save parsed value in the Host header
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Marchán authored and essen committed Jul 23, 2012
1 parent bab6290 commit f3c5881
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cowboy_http_protocol.erl
Expand Up @@ -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;
Expand Down

0 comments on commit f3c5881

Please sign in to comment.