Skip to content

Commit

Permalink
API-624: Adding accept-encoding: gzip header
Browse files Browse the repository at this point in the history
  • Loading branch information
adambilsing committed Dec 23, 2016
1 parent 8247ea2 commit ef32914
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ gemspec
group :development do
gem 'pry'
gem 'rspec'
gem 'simplecov'
gem 'rubocop'
gem 'simplecov'
end
3 changes: 2 additions & 1 deletion lib/bigcommerce/connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ module Connection
HEADERS = {
'accept' => 'application/json',
'content-type' => 'application/json',
'user-agent' => 'bigcommerce-api-ruby'
'user-agent' => 'bigcommerce-api-ruby',
'accept-encoding' => 'gzip'
}.freeze

def self.build(config)
Expand Down

0 comments on commit ef32914

Please sign in to comment.