Class: Fog::AzureRM::IdentityEncodingFilter

Inherits:
Object
  • Object
show all
Defined in:
lib/fog/azurerm/identity_encoding_filter.rb

Overview

This filter prevents Net::HTTP from inflating compressed response bodies

Instance Method Summary collapse

Instance Method Details

#call(request, next_filter) ⇒ Object



5
6
7
8
9
# File 'lib/fog/azurerm/identity_encoding_filter.rb', line 5

def call(request, next_filter)
  request.headers['Accept-Encoding'] ||= 'identity'

  next_filter.call
end