Skip to content

Commit

Permalink
Respect the global :proxy setting for WSDL requests, too.
Browse files Browse the repository at this point in the history
  • Loading branch information
larskanis committed Jan 25, 2013
1 parent 70ba12e commit ad740ab
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/savon/request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ def initialize(globals, http_request = nil)
end

def build
configure_request
configure_timeouts
configure_ssl

Expand All @@ -17,6 +18,10 @@ def build

private

def configure_request
@http_request.proxy = @globals[:proxy] if @globals.include? :proxy
end

def configure_timeouts
@http_request.open_timeout = @globals[:open_timeout] if @globals.include? :open_timeout
@http_request.read_timeout = @globals[:read_timeout] if @globals.include? :read_timeout
Expand Down

0 comments on commit ad740ab

Please sign in to comment.