aboutsummaryrefslogtreecommitdiffstats
path: root/src/cow_http_hd.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2014-12-28 15:46:40 +0100
committerLoïc Hoguin <[email protected]>2014-12-28 15:46:40 +0100
commit406f5a250ada0a174936bfd498718c2736bf2990 (patch)
tree6b0a2c7ddd27e86078a00e86ec8590897d20f1fe /src/cow_http_hd.erl
parentc85ef5cf4f4aca5ea3d32261f53501097374755c (diff)
downloadcowlib-406f5a250ada0a174936bfd498718c2736bf2990.tar.gz
cowlib-406f5a250ada0a174936bfd498718c2736bf2990.tar.bz2
cowlib-406f5a250ada0a174936bfd498718c2736bf2990.zip
Add a test for cow_http_hd:parse_content_length/1
Negative number.
Diffstat (limited to 'src/cow_http_hd.erl')
-rw-r--r--src/cow_http_hd.erl1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cow_http_hd.erl b/src/cow_http_hd.erl
index 2e94e6b..6a45fe1 100644
--- a/src/cow_http_hd.erl
+++ b/src/cow_http_hd.erl
@@ -1420,6 +1420,7 @@ parse_content_length_test_() ->
parse_content_length_error_test_() ->
Tests = [
<<>>,
+ <<"-1">>,
<<"123, 123">>,
<<"4.17">>
],