We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e5e91e commit 4b06c59Copy full SHA for 4b06c59
elasticsearch-transport/lib/elasticsearch/transport/transport/http/manticore.rb
@@ -158,7 +158,7 @@ def apply_headers(request_options, options)
158
headers = (options && options[:headers]) || {}
159
headers[CONTENT_TYPE_STR] = find_value(headers, CONTENT_TYPE_REGEX) || DEFAULT_CONTENT_TYPE
160
headers[USER_AGENT_STR] = find_value(headers, USER_AGENT_REGEX) || user_agent_header
161
- headers[ACCEPT_ENCODING] = GZIP
+ headers[ACCEPT_ENCODING] = GZIP if use_compression?
162
request_options.merge!(headers: headers)
163
end
164
0 commit comments