Skip to content

Commit a184993

Browse files
committed
Merge pull request piotrmurach#213 from reenhanced/master
Allows users to override faraday connection options
2 parents 1f918cc + 44c8a85 commit a184993

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/github_api/connection.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ def connection(api, options = {})
6161
clear_cache unless options.empty?
6262
builder = api.stack ? api.stack : stack(options.merge!(api: api))
6363
connection_options.merge!(builder: builder)
64+
connection_options.deep_merge!(options[:connection_options]) if options[:connection_options]
6465
if ENV['DEBUG']
6566
p "Connection options : \n"
6667
pp connection_options

0 commit comments

Comments
 (0)