lib/handsoap/http/drivers/net_http_driver.rb in handsoap-1.1.2 vs lib/handsoap/http/drivers/net_http_driver.rb in handsoap-1.1.3

- old
+ new

@@ -26,12 +26,17 @@ when :delete 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.read_timeout = 120 + http_client.read_timeout = Handsoap.timeout + 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 request.headers.each do |k, values|