From ad740ab87af2f415857ae8f81937a2c455d9bb23 Mon Sep 17 00:00:00 2001 From: Lars Kanis Date: Fri, 25 Jan 2013 15:05:07 +0100 Subject: [PATCH] Respect the global :proxy setting for WSDL requests, too. --- lib/savon/request.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/savon/request.rb b/lib/savon/request.rb index bb4ea5fc..5e9ab8b5 100644 --- a/lib/savon/request.rb +++ b/lib/savon/request.rb @@ -9,6 +9,7 @@ def initialize(globals, http_request = nil) end def build + configure_request configure_timeouts configure_ssl @@ -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