lib/savon/request.rb in savon-2.11.2 vs lib/savon/request.rb in savon-2.12.0

- old
+ new

@@ -24,17 +24,20 @@ end def configure_ssl @http_request.auth.ssl.ssl_version = @globals[:ssl_version] if @globals.include? :ssl_version @http_request.auth.ssl.verify_mode = @globals[:ssl_verify_mode] if @globals.include? :ssl_verify_mode + @http_request.auth.ssl.ciphers = @globals[:ssl_ciphers] if @globals.include? :ssl_ciphers @http_request.auth.ssl.cert_key_file = @globals[:ssl_cert_key_file] if @globals.include? :ssl_cert_key_file - @http_request.auth.ssl.cert_key = @globals[:ssl_cert_key] if @globals.include? :ssl_cert_key + @http_request.auth.ssl.cert_key = @globals[:ssl_cert_key] if @globals.include? :ssl_cert_key @http_request.auth.ssl.cert_file = @globals[:ssl_cert_file] if @globals.include? :ssl_cert_file - @http_request.auth.ssl.cert = @globals[:ssl_cert] if @globals.include? :ssl_cert + @http_request.auth.ssl.cert = @globals[:ssl_cert] if @globals.include? :ssl_cert @http_request.auth.ssl.ca_cert_file = @globals[:ssl_ca_cert_file] if @globals.include? :ssl_ca_cert_file - @http_request.auth.ssl.ca_cert = @globals[:ssl_ca_cert] if @globals.include? :ssl_ca_cert + @http_request.auth.ssl.ca_cert_path = @globals[:ssl_ca_cert_path] if @globals.include? :ssl_ca_cert_path + @http_request.auth.ssl.ca_cert = @globals[:ssl_ca_cert] if @globals.include? :ssl_ca_cert + @http_request.auth.ssl.cert_store = @globals[:ssl_cert_store] if @globals.include? :ssl_cert_store @http_request.auth.ssl.cert_key_password = @globals[:ssl_cert_key_password] if @globals.include? :ssl_cert_key_password end def configure_auth @@ -53,14 +56,21 @@ class WSDLRequest < HTTPRequest def build configure_proxy configure_timeouts + configure_headers configure_ssl configure_auth configure_redirect_handling @http_request + end + + private + + def configure_headers + @http_request.headers = @globals[:headers] if @globals.include? :headers end end class SOAPRequest < HTTPRequest