Skip to content

Commit 2f3ad2f

Browse files
committed
[CLIENT] Support compression when using Manticore adapter with JRuby
1 parent e40c48b commit 2f3ad2f

File tree

1 file changed

+1
-0
lines changed
  • elasticsearch-transport/lib/elasticsearch/transport/transport/http

1 file changed

+1
-0
lines changed

elasticsearch-transport/lib/elasticsearch/transport/transport/http/manticore.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ def apply_headers(request_options, options)
158158
headers = (options && options[:headers]) || {}
159159
headers[CONTENT_TYPE_STR] = find_value(headers, CONTENT_TYPE_REGEX) || DEFAULT_CONTENT_TYPE
160160
headers[USER_AGENT_STR] = find_value(headers, USER_AGENT_REGEX) || user_agent_header
161+
headers[ACCEPT_ENCODING] = GZIP
161162
request_options.merge!(headers: headers)
162163
end
163164

0 commit comments

Comments
 (0)