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