Skip to content

Commit

Permalink
fix: allow proxy env var to be used when fetching pacts
Browse files Browse the repository at this point in the history
Closes: #66
  • Loading branch information
bethesque committed May 20, 2019
1 parent be6d29c commit ebce481
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pact/consumer_contract/pact_file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def get_remote(uri, options)
request = Net::HTTP::Get.new(uri)
request.basic_auth(options[:username], options[:password]) if options[:username]
request['Authorization'] = "Bearer #{options[:token]}" if options[:token]
Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == 'https') do |http|
Net::HTTP.start(uri.host, uri.port, :ENV, use_ssl: uri.scheme == 'https') do |http|
http.open_timeout = options[:open_timeout] || OPEN_TIMEOUT
http.read_timeout = options[:read_timeout] || READ_TIMEOUT
http.request(request)
Expand Down

0 comments on commit ebce481

Please sign in to comment.