Skip to content

Commit

Permalink
Merge pull request #136 from adambilsing/API-624
Browse files Browse the repository at this point in the history
API-624: Add accept-encoding: gzip header
  • Loading branch information
bookernath authored Dec 23, 2016
2 parents 8247ea2 + d8e29cf commit f615722
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Your contribution here.

* [#000](https://github.com/bigcommerce/bigcommerce-api-ruby/pull/000): Brief description here. - [@username](https://github.com/username).
* [#136](https://github.com/bigcommerce/bigcommerce-api-ruby/pull/136): Added accept-encoding: gzip header. - [@adambilsing](https://github.com/adambilsing)
* [#128](https://github.com/bigcommerce/bigcommerce-api-ruby/pull/128): Added support for token generation for storefront login. - [@mattolson](https://github.com/mattolson).

## 1.0.0
Expand Down
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 f615722

Please sign in to comment.