aboutsummaryrefslogtreecommitdiffstats
path: root/test/http_SUITE.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2012-09-21 13:07:51 +0200
committerLoïc Hoguin <[email protected]>2012-09-21 13:07:51 +0200
commite27fd5fcb9786bed45976a3e4322bc89d3ffc025 (patch)
treedf7ecdeacb2eeff7145337d0d6e7a1b5cc279b1b /test/http_SUITE.erl
parent34021666cbf626e979ea136664b1f8beca893d6f (diff)
downloadcowboy-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/http_SUITE.erl')
-rw-r--r--test/http_SUITE.erl4
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) ->