aboutsummaryrefslogtreecommitdiffstats
path: root/src/cow_http_hd.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2014-12-16 08:52:19 +0200
committerLoïc Hoguin <[email protected]>2014-12-16 08:52:19 +0200
commit96c69fb04eb55d627849c5120081462b6ca81893 (patch)
treeed613cac0bb9bf95d349dec0a7814c48625dca06 /src/cow_http_hd.erl
parent6581c2e808e0b57ba4e8389c2126779bc43ada0a (diff)
downloadcowlib-96c69fb04eb55d627849c5120081462b6ca81893.tar.gz
cowlib-96c69fb04eb55d627849c5120081462b6ca81893.tar.bz2
cowlib-96c69fb04eb55d627849c5120081462b6ca81893.zip
Fix a shadow var warning in a property
Diffstat (limited to 'src/cow_http_hd.erl')
-rw-r--r--src/cow_http_hd.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cow_http_hd.erl b/src/cow_http_hd.erl
index 1672d2a..23d627b 100644
--- a/src/cow_http_hd.erl
+++ b/src/cow_http_hd.erl
@@ -436,9 +436,9 @@ prop_parse_accept_charset() ->
<< _, AcceptCharset/binary >> = iolist_to_binary([[$,, A] || {_, _, A} <- L]),
ResL = parse_accept_charset(AcceptCharset),
CheckedL = [begin
- ResC =:= ?INLINE_LOWERCASE_BC(C)
+ ResC =:= ?INLINE_LOWERCASE_BC(Ch)
andalso (ResW =:= W orelse (W =:= undefined andalso ResW =:= 1000))
- end || {{C, W, _}, {ResC, ResW}} <- lists:zip(L, ResL)],
+ end || {{Ch, W, _}, {ResC, ResW}} <- lists:zip(L, ResL)],
[true] =:= lists:usort(CheckedL)
end).