summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authoraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-05-18 17:23:22 +0000
committeraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-05-18 17:23:22 +0000
commitb3e53ed154822eeb0aca1fd5bd900dffb510c495 (patch)
treebce5e3ba283043746ebaf98f184f30401e084e6d /lib
parent34a553da2ee21e96999c150f80b7231d474a48d3 (diff)
* lib/net/http.rb: do not use class variables.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6360 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/net/http.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/net/http.rb b/lib/net/http.rb
index 7e07051902..ed68c81a1a 100644
--- a/lib/net/http.rb
+++ b/lib/net/http.rb
@@ -176,7 +176,7 @@ module Net # :nodoc:
# :stopdoc:
Revision = %q$Revision$.split[1]
HTTPVersion = '1.1'
- @@newimpl = true # for backward compatability
+ @newimpl = true # for backward compatability
# :startdoc:
# Turns on net/http 1.2 (ruby 1.8) features.
@@ -188,25 +188,25 @@ module Net # :nodoc:
# Net::HTTP.version_1_2
#
def HTTP.version_1_2
- @@newimpl = true
+ @newimpl = true
end
# Turns on net/http 1.1 (ruby 1.6) features.
# Defaults to OFF in ruby 1.8.
def HTTP.version_1_1
- @@newimpl = false
+ @newimpl = false
end
# true if net/http is in version 1.2 mode.
# Defaults to true.
def HTTP.version_1_2?
- @@newimpl
+ @newimpl
end
# true if net/http is in version 1.1 compatible mode.
# Defaults to true.
def HTTP.version_1_1?
- not @@newimpl
+ not @newimpl
end
class << HTTP