Skip to content

Commit fc786e3

Browse files
feat(clients): response decompression (generated)
algolia/api-clients-automation#6095 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Eric Zaharia <[email protected]>
1 parent 6bf4279 commit fc786e3

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

lib/algolia/transport/transport.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,6 @@ def build_body(body, request_options)
136136
def generate_header_params(body, request_options)
137137
header_params = request_options.header_params.transform_keys(&:downcase)
138138
header_params = @config.header_params.merge(header_params)
139-
header_params["accept-encoding"] = "gzip" if request_options.compression_type == "gzip"
140139
if request_options.compression_type == "gzip" && body.is_a?(String) && !body.to_s.strip.empty?
141140
header_params["content-encoding"] = "gzip"
142141
end

0 commit comments

Comments
 (0)