summaryrefslogtreecommitdiff
path: root/lib/net/http.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/net/http.rb')
-rw-r--r--lib/net/http.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/net/http.rb b/lib/net/http.rb
index 51d2e7c9d3..98e16c9294 100644
--- a/lib/net/http.rb
+++ b/lib/net/http.rb
@@ -523,9 +523,11 @@ module Net #:nodoc:
# returns true if use SSL/TLS with HTTP.
def use_ssl?
- false # redefined in net/https
+ @use_ssl
end
+ alias use_ssl use_ssl? #:nodoc: obsolete
+
# Opens TCP connection and HTTP session.
#
# When this method is called with block, gives a HTTP object