aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cowboy_http_protocol.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cowboy_http_protocol.erl b/src/cowboy_http_protocol.erl
index ef87af7..f6c5a34 100644
--- a/src/cowboy_http_protocol.erl
+++ b/src/cowboy_http_protocol.erl
@@ -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;