diff options
author | Loïc Hoguin <[email protected]> | 2012-09-21 13:07:51 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2012-09-21 13:07:51 +0200 |
commit | e27fd5fcb9786bed45976a3e4322bc89d3ffc025 (patch) | |
tree | df7ecdeacb2eeff7145337d0d6e7a1b5cc279b1b /test | |
parent | 34021666cbf626e979ea136664b1f8beca893d6f (diff) | |
download | cowboy-e27fd5fcb9786bed45976a3e4322bc89d3ffc025.tar.gz cowboy-e27fd5fcb9786bed45976a3e4322bc89d3ffc025.tar.bz2 cowboy-e27fd5fcb9786bed45976a3e4322bc89d3ffc025.zip |
Make multipart part headers binary lowercase
Here we do not remove decode_packet yet, we just lowercase the
header name and transform it into a binary if needed, to fix
the consistency issue.
Diffstat (limited to 'test')
-rw-r--r-- | test/http_SUITE.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/http_SUITE.erl b/test/http_SUITE.erl index a7e49f9..559903a 100644 --- a/test/http_SUITE.erl +++ b/test/http_SUITE.erl @@ -552,8 +552,8 @@ multipart(Config) -> {ok, RespBody, _} = cowboy_client:response_body(Client3), Parts = binary_to_term(RespBody), Parts = [ - {[{<<"X-Name">>, <<"answer">>}], <<"42">>}, - {[{'Server', <<"Cowboy">>}], <<"It rocks!\r\n">>} + {[{<<"x-name">>, <<"answer">>}], <<"42">>}, + {[{<<"server">>, <<"Cowboy">>}], <<"It rocks!\r\n">>} ]. nc_reqs(Config, Input) -> |