mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-15 04:30:25 +00:00
Don't save parsed value in the Host header
This commit is contained in:
parent
bab62900dd
commit
f3c5881dd4
1 changed files with 2 additions and 2 deletions
|
@ -187,11 +187,11 @@ header({http_header, _I, 'Host', _R, RawHost}, Req=#http_req{
|
||||||
Port = default_port(Transport:name()),
|
Port = default_port(Transport:name()),
|
||||||
parse_header(Req#http_req{
|
parse_header(Req#http_req{
|
||||||
host=Host, raw_host=RawHost3, port=Port,
|
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} ->
|
{Host, RawHost3, Port} ->
|
||||||
parse_header(Req#http_req{
|
parse_header(Req#http_req{
|
||||||
host=Host, raw_host=RawHost3, port=Port,
|
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} ->
|
{'EXIT', _Reason} ->
|
||||||
error_terminate(400, State)
|
error_terminate(400, State)
|
||||||
end;
|
end;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue