diff options
author | Loïc Hoguin <[email protected]> | 2014-12-24 18:56:56 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2014-12-24 19:43:48 +0200 |
commit | 6e9476d9e37f8c1e9925f80cd267e312f09b48aa (patch) | |
tree | 311212d2cd99813f030d3cbcec1e7a6c42d1dfd9 | |
parent | f6aad0fa24d9cc7e4a1452c56ce18214f1e3df15 (diff) | |
download | cowlib-6e9476d9e37f8c1e9925f80cd267e312f09b48aa.tar.gz cowlib-6e9476d9e37f8c1e9925f80cd267e312f09b48aa.tar.bz2 cowlib-6e9476d9e37f8c1e9925f80cd267e312f09b48aa.zip |
Fix a variable shadow issue in the tests
-rw-r--r-- | src/cow_http_hd.erl | 6 |
1 files 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). |