lib/handsoap/http/drivers/net_http_driver.rb in handsoap-1.1.0 vs lib/handsoap/http/drivers/net_http_driver.rb in handsoap-1.1.1
- old
+ new
@@ -27,9 +27,10 @@
Net::HTTP::Delete.new(path)
else
raise "Unsupported request method #{request.http_method}"
end
http_client = Net::HTTP.new(url.host, url.port)
+ http_client.use_ssl = true if url.scheme == 'https'
http_client.read_timeout = 120
if request.username && request.password
# TODO: http://codesnippets.joyent.com/posts/show/1075
http_request.basic_auth request.username, request.password
end