nickva commented on code in PR #6106:
URL: https://github.com/apache/couchdb/pull/6106#discussion_r3964840243
##########
src/couch_replicator/src/couch_replicator_httpc.erl:
##########
@@ -265,6 +266,17 @@ process_stream_response(ReqId, Worker, HttpDb, Params,
Callback) ->
maybe_retry(timeout, Worker, HttpDb, Params)
end.
+maybe_decompress_response(_Headers, <<>>) ->
+ <<>>;
+maybe_decompress_response(Headers, Body) ->
+ case lists:keyfind("content-encoding", 1, [{string:to_lower(K), V} || {K,
V} <- Headers]) of
Review Comment:
See how we use mochiweb_header make/get_value that has a facility to fetch
headers in a case insensitive way
##########
src/docs/src/config/replicator.rst:
##########
@@ -151,6 +154,19 @@ Replicator Database Configuration
[replicator]
compress_min_size = 1024
+ .. config:option:: response_compression :: Decompress inbound response
bodies
+
+ .. versionadded:: 3.6
+
+ Decompress gzip-encoded inbound response bodies (``_bulk_docs``,
+ ``_revs_diff``, ``_bulk_get``) received from the replication source.
Review Comment:
minor nit: _revs_diff and _bulk_docs calls are for the target
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]