aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2014-12-18 01:27:21 +0200
committerLoïc Hoguin <[email protected]>2014-12-18 01:27:21 +0200
commit8d24bfa2c056697b6cfdfb83e1ee12065d55ed0e (patch)
tree0619f2d3107b5e2a87c4c3571bcd5067f9e03bc9 /src
parentd357eacb249e237a08d8ed66c5ce8918d8eaa551 (diff)
downloadcowlib-8d24bfa2c056697b6cfdfb83e1ee12065d55ed0e.tar.gz
cowlib-8d24bfa2c056697b6cfdfb83e1ee12065d55ed0e.tar.bz2
cowlib-8d24bfa2c056697b6cfdfb83e1ee12065d55ed0e.zip
Rename a local cow_http_hd function for better precision
Diffstat (limited to 'src')
-rw-r--r--src/cow_http_hd.erl8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cow_http_hd.erl b/src/cow_http_hd.erl
index 527f0a6..f761b6a 100644
--- a/src/cow_http_hd.erl
+++ b/src/cow_http_hd.erl
@@ -1091,11 +1091,11 @@ etag_list(<<>>, Acc) -> lists:reverse(Acc);
etag_list(<< $\s, R/bits >>, Acc) -> etag_list(R, Acc);
etag_list(<< $\t, R/bits >>, Acc) -> etag_list(R, Acc);
etag_list(<< $,, R/bits >>, Acc) -> etag_list(R, Acc);
-etag_list(<< $W, $/, $", R/bits >>, Acc) -> etagc(R, Acc, weak, <<>>);
-etag_list(<< $", R/bits >>, Acc) -> etagc(R, Acc, strong, <<>>).
+etag_list(<< $W, $/, $", R/bits >>, Acc) -> etag(R, Acc, weak, <<>>);
+etag_list(<< $", R/bits >>, Acc) -> etag(R, Acc, strong, <<>>).
-etagc(<< $", R/bits >>, Acc, Strength, Tag) -> etag_list_sep(R, [{Strength, Tag}|Acc]);
-etagc(<< C, R/bits >>, Acc, Strength, Tag) when ?IS_ETAGC(C) -> etagc(R, Acc, Strength, << Tag/binary, C >>).
+etag(<< $", R/bits >>, Acc, Strength, Tag) -> etag_list_sep(R, [{Strength, Tag}|Acc]);
+etag(<< C, R/bits >>, Acc, Strength, Tag) when ?IS_ETAGC(C) -> etag(R, Acc, Strength, << Tag/binary, C >>).
etag_list_sep(<<>>, Acc) -> lists:reverse(Acc);
etag_list_sep(<< $\s, R/bits >>, Acc) -> etag_list_sep(R, Acc);