aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2014-12-26 13:08:14 +0100
committerLoïc Hoguin <[email protected]>2014-12-26 13:08:14 +0100
commit8a51e3b533d4be1f102c331709fb244776ff40dd (patch)
tree6805e76a0d11e389a6288bf53fc282e17ef90a06
parenta5da247c3efe960096ae0a4bcdd0d50a2fa1cb95 (diff)
downloadcowlib-8a51e3b533d4be1f102c331709fb244776ff40dd.tar.gz
cowlib-8a51e3b533d4be1f102c331709fb244776ff40dd.tar.bz2
cowlib-8a51e3b533d4be1f102c331709fb244776ff40dd.zip
Fix a parse_max_forwards test
-rw-r--r--src/cow_http_hd.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cow_http_hd.erl b/src/cow_http_hd.erl
index 48a8705..6d6562e 100644
--- a/src/cow_http_hd.erl
+++ b/src/cow_http_hd.erl
@@ -1853,7 +1853,8 @@ parse_max_forwards_error_test_() ->
<<"123, 123">>,
<<"4.17">>
],
- [{V, fun() -> {'EXIT', _} = (catch parse_content_length(V)) end} || V <- Tests].
+ [{V, fun() -> {'EXIT', _} = (catch parse_max_forwards(V)) end} || V <- Tests].
+-endif.
%% @doc Parse the Retry-After header.