diff options
author | Loïc Hoguin <[email protected]> | 2014-12-17 15:24:16 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2014-12-17 15:24:16 +0200 |
commit | 95b4a3924d2a8ac1bf0d114248f1a45e58c25cbf (patch) | |
tree | 734b5ef3703bf2deb27afb206b9e2e1bd367cff2 /src | |
parent | eb7be77916f99d3b323db80af42a14bf7e4e5c2e (diff) | |
download | cowlib-95b4a3924d2a8ac1bf0d114248f1a45e58c25cbf.tar.gz cowlib-95b4a3924d2a8ac1bf0d114248f1a45e58c25cbf.tar.bz2 cowlib-95b4a3924d2a8ac1bf0d114248f1a45e58c25cbf.zip |
Add test cases taken from RFC7230
Diffstat (limited to 'src')
-rw-r--r-- | src/cow_http_hd.erl | 4 |
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]. |