Sha256: c01d3fbea54b65db3f7027ae5a157c8a90d854efa55e534ebc15bc55018e1d1a

Contents?: true

Size: 289 Bytes

Versions: 6

Compression:

Stored size: 289 Bytes

Contents

module Fog
  module AzureRM
    # This filter prevents Net::HTTP from inflating compressed response bodies
    class IdentityEncodingFilter
      def call(request, next_filter)
        request.headers['Accept-Encoding'] ||= 'identity'

        next_filter.call
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
gitlab-fog-azure-rm-2.2.0 lib/fog/azurerm/identity_encoding_filter.rb
gitlab-fog-azure-rm-2.1.0 lib/fog/azurerm/identity_encoding_filter.rb
gitlab-fog-azure-rm-2.0.1 lib/fog/azurerm/identity_encoding_filter.rb
gitlab-fog-azure-rm-2.0.0 lib/fog/azurerm/identity_encoding_filter.rb
gitlab-fog-azure-rm-1.9.1 lib/fog/azurerm/identity_encoding_filter.rb
gitlab-fog-azure-rm-1.9.0 lib/fog/azurerm/identity_encoding_filter.rb