Skip to content

Commit d8e29cf

Browse files
committed
API-624: Adding accept-encoding: gzip header
1 parent 8247ea2 commit d8e29cf

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
Your contribution here.
33

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

78
## 1.0.0

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ gemspec
44
group :development do
55
gem 'pry'
66
gem 'rspec'
7-
gem 'simplecov'
87
gem 'rubocop'
8+
gem 'simplecov'
99
end

lib/bigcommerce/connection.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ module Connection
33
HEADERS = {
44
'accept' => 'application/json',
55
'content-type' => 'application/json',
6-
'user-agent' => 'bigcommerce-api-ruby'
6+
'user-agent' => 'bigcommerce-api-ruby',
7+
'accept-encoding' => 'gzip'
78
}.freeze
89

910
def self.build(config)

0 commit comments

Comments
 (0)