* lib/net/http.rb: imported from trunk, rev 1.129

* lib/net/http.rb (add_field, get_fields): keep 1.8.2 backward compatibility.
* lib/net/https.rb: imported from trunk, rev 1.3.
* lib/net/https.rb: #use_ssl? definition moved from net/http.rb.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9891 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
aamine 2006-02-05 09:56:34 +00:00
parent c44118b8a0
commit 661268aba7
3 changed files with 26 additions and 9 deletions

View file

@ -104,6 +104,14 @@ require 'openssl'
module Net
class HTTP
remove_method :use_ssl?
def use_ssl?
@use_ssl
end
# For backward compatibility.
alias use_ssl use_ssl?
# Turn on/off SSL.
# This flag must be set before starting session.
# If you change use_ssl value after session started,