Index: lib/net/http.rb =================================================================== --- lib/net/http.rb (revision 33612) +++ lib/net/http.rb (working copy) @@ -451,7 +451,8 @@ } else uri = uri_or_host - new(uri.hostname, uri.port).start {|http| + start(uri.hostname, uri.port, + :use_ssl => uri.scheme == 'https') {|http| return http.request_get(uri.request_uri, &block) } end @@ -479,7 +480,8 @@ req = Post.new(url.request_uri) req.form_data = params req.basic_auth url.user, url.password if url.user - new(url.hostname, url.port).start {|http| + start(url.hostname, url.port, + :use_ssl => uri.scheme == 'https' ) {|http| http.request(req) } end