Skip to content

Commit

Permalink
Revert "If ENV['http_proxy'] has port, use it (#424)"
Browse files Browse the repository at this point in the history
This reverts commit ec71cb0.
  • Loading branch information
Cawllec authored Feb 19, 2018
1 parent ec71cb0 commit 08e7ce4
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions lib/bugsnag/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,7 @@ def initialize
self.api_key = ENV["BUGSNAG_API_KEY"]

# Read NET::HTTP proxy environment variable
if ENV["http_proxy"]
uri = URI.parse(ENV["http_proxy"])
self.proxy_host = uri.host
self.proxy_port = uri.port
self.proxy_user = uri.user
self.proxy_password = uri.password
end
self.proxy_host = ENV["http_proxy"]

# Set up logging
self.logger = Logger.new(STDOUT)
Expand Down

0 comments on commit 08e7ce4

Please sign in to comment.