aboutsummaryrefslogtreecommitdiffstats
path: root/src/cow_http_hd.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2014-12-17 15:24:16 +0200
committerLoïc Hoguin <[email protected]>2014-12-17 15:24:16 +0200
commit95b4a3924d2a8ac1bf0d114248f1a45e58c25cbf (patch)
tree734b5ef3703bf2deb27afb206b9e2e1bd367cff2 /src/cow_http_hd.erl
parenteb7be77916f99d3b323db80af42a14bf7e4e5c2e (diff)
downloadcowlib-95b4a3924d2a8ac1bf0d114248f1a45e58c25cbf.tar.gz
cowlib-95b4a3924d2a8ac1bf0d114248f1a45e58c25cbf.tar.bz2
cowlib-95b4a3924d2a8ac1bf0d114248f1a45e58c25cbf.zip
Add test cases taken from RFC7230
Diffstat (limited to 'src/cow_http_hd.erl')
-rw-r--r--src/cow_http_hd.erl4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cow_http_hd.erl b/src/cow_http_hd.erl
index 7200e8e..8427cc7 100644
--- a/src/cow_http_hd.erl
+++ b/src/cow_http_hd.erl
@@ -779,6 +779,7 @@ parse_content_length_test_() ->
{<<"42 ">>, 42},
{<<"69\t">>, 69},
{<<"1337">>, 1337},
+ {<<"3495">>, 3495},
{<<"1234567890">>, 1234567890},
{<<"1234567890 ">>, 1234567890}
],
@@ -1123,7 +1124,8 @@ parse_transfer_encoding_test_() ->
{<<" , , , a">>, [<<"a">>]},
{<<"a , , b">>, [<<"a">>, <<"b">>]},
{<<"chunked">>, [<<"chunked">>]},
- {<<"chunked, something">>, [<<"chunked">>, <<"something">>]}
+ {<<"chunked, something">>, [<<"chunked">>, <<"something">>]},
+ {<<"gzip, chunked">>, [<<"gzip">>, <<"chunked">>]}
],
[{V, fun() -> R = parse_transfer_encoding(V) end} || {V, R} <- Tests].