Skip to content

Commit

Permalink
feat: Enable gzip compression on polling requests (#249)
Browse files Browse the repository at this point in the history
  • Loading branch information
keelerm84 authored Feb 20, 2024
1 parent b639f43 commit abffe47
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions contract-tests/service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
'migrations',
'event-sampling',
'context-comparison',
'polling-gzip',
],
}.to_json
end
Expand Down
2 changes: 2 additions & 0 deletions lib/ldclient-rb/requestor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ def initialize(sdk_key, config)
@sdk_key = sdk_key
@config = config
@http_client = LaunchDarkly::Util.new_http_client(config.base_uri, config)
.use(:auto_inflate)
.headers("Accept-Encoding" => "gzip")
@cache = @config.cache_store
end

Expand Down

0 comments on commit abffe47

Please sign in to comment.