Browse Source

Fix a parse_max_forwards test

Loïc Hoguin 10 years ago
parent
commit
8a51e3b533
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/cow_http_hd.erl

+ 2 - 1
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.