lib/savon/request.rb in savon-2.5.1 vs lib/savon/request.rb in savon-2.6.0

- old
+ new

@@ -38,23 +38,28 @@ @http_request.auth.basic(*@globals[:basic_auth]) if @globals.include? :basic_auth @http_request.auth.digest(*@globals[:digest_auth]) if @globals.include? :digest_auth @http_request.auth.ntlm(*@globals[:ntlm]) if @globals.include? :ntlm end + def configure_redirect_handling + if @globals.include? :follow_redirects + @http_request.follow_redirect = @globals[:follow_redirects] + end + end end class WSDLRequest < HTTPRequest def build configure_proxy configure_timeouts configure_ssl configure_auth + configure_redirect_handling @http_request end - end class SOAPRequest < HTTPRequest CONTENT_TYPE = { @@ -67,10 +72,11 @@ configure_cookies options[:cookies] configure_timeouts configure_headers options[:soap_action] configure_ssl configure_auth + configure_redirect_handling @http_request end private @@ -82,8 +88,7 @@ def configure_headers(soap_action) @http_request.headers = @globals[:headers] if @globals.include? :headers @http_request.headers["SOAPAction"] ||= %{"#{soap_action}"} if soap_action @http_request.headers["Content-Type"] ||= CONTENT_TYPE[@globals[:soap_version]] % @globals[:encoding] end - end end