diff options
author | Josh Marchán <[email protected]> | 2012-06-26 12:52:03 -0400 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2012-07-24 00:51:43 +0200 |
commit | f3c5881dd41ce121151079c8315c7b39c003ee73 (patch) | |
tree | 2ceaf539e447f164b4d29b771f6c2fa3c70692a4 /src/cowboy_http_protocol.erl | |
parent | bab62900dd2030e15d4b8150c1214ac76aca2f25 (diff) | |
download | cowboy-f3c5881dd41ce121151079c8315c7b39c003ee73.tar.gz cowboy-f3c5881dd41ce121151079c8315c7b39c003ee73.tar.bz2 cowboy-f3c5881dd41ce121151079c8315c7b39c003ee73.zip |
Don't save parsed value in the Host header
Diffstat (limited to 'src/cowboy_http_protocol.erl')
-rw-r--r-- | src/cowboy_http_protocol.erl | 4 |
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; |