From 3982c5bcaf45454ef384b98240d17ef47233f82a Mon Sep 17 00:00:00 2001 From: Doug Hughes Date: Sat, 25 Mar 2023 10:05:52 -0400 Subject: [PATCH] Add support for gzip decompressing in Ruby gem --- swagger-config/marketing/ruby/templates/api_client.mustache | 1 + 1 file changed, 1 insertion(+) diff --git a/swagger-config/marketing/ruby/templates/api_client.mustache b/swagger-config/marketing/ruby/templates/api_client.mustache index 4555e1f..d5f1873 100644 --- a/swagger-config/marketing/ruby/templates/api_client.mustache +++ b/swagger-config/marketing/ruby/templates/api_client.mustache @@ -12,6 +12,7 @@ module {{moduleName}} @host = "{{{basePath}}}" @user_agent = "{{#httpUserAgent}}{{{.}}}{{/httpUserAgent}}{{^httpUserAgent}}Swagger-Codegen/#{VERSION}/ruby{{/httpUserAgent}}" set_config(config) + Excon.defaults[:middlewares].push(Excon::Middleware::Decompress) end def self.default