From 6e9476d9e37f8c1e9925f80cd267e312f09b48aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Wed, 24 Dec 2014 18:56:56 +0200 Subject: Fix a variable shadow issue in the tests --- src/cow_http_hd.erl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cow_http_hd.erl b/src/cow_http_hd.erl index ecab1b4..2daff5f 100644 --- a/src/cow_http_hd.erl +++ b/src/cow_http_hd.erl @@ -806,13 +806,13 @@ prop_parse_cache_control() -> begin ResL = parse_cache_control(CacheControl), CheckedL = [begin - ExpectedC = case C of + ExpectedCc = case Cc of {fields, K, V} -> {?INLINE_LOWERCASE_BC(K), [?INLINE_LOWERCASE_BC(F) || F <- V]}; {K, V} -> {?INLINE_LOWERCASE_BC(K), unquote(V)}; K -> ?INLINE_LOWERCASE_BC(K) end, - ExpectedC =:= ResC - end || {C, ResC} <- lists:zip(L, ResL)], + ExpectedCc =:= ResCc + end || {Cc, ResCc} <- lists:zip(L, ResL)], [true] =:= lists:usort(CheckedL) end). -- cgit v1.2.3