summaryrefslogtreecommitdiff
path: root/src/couch/src/couch_httpd.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/couch/src/couch_httpd.erl')
-rw-r--r--src/couch/src/couch_httpd.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/couch/src/couch_httpd.erl b/src/couch/src/couch_httpd.erl
index 76f8279f6..91c7f91ee 100644
--- a/src/couch/src/couch_httpd.erl
+++ b/src/couch/src/couch_httpd.erl
@@ -745,8 +745,8 @@ rev_etag({Start, DiskRev}) ->
<<$", Rev/binary, $">>.
make_etag(Term) ->
- <<SigInt:128/integer>> = couch_hash:md5_hash(term_to_binary(Term)),
- iolist_to_binary([$", io_lib:format("~.36B", [SigInt]), $"]).
+ <<SigInt:128/integer>> = exxhash:xxhash128(?term_to_bin(Term)),
+ list_to_binary(io_lib:format("\"~.36B\"", [SigInt])).
etag_match(Req, CurrentEtag) when is_binary(CurrentEtag) ->
etag_match(Req, binary_to_list(CurrentEtag));