mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
34a553da2e
commit
b3e53ed154
2 changed files with 9 additions and 5 deletions
|
@ -1,3 +1,7 @@
|
|||
Wed May 19 02:21:53 2004 Minero Aoki <aamine@loveruby.net>
|
||||
|
||||
* lib/net/http.rb: do not use class variables.
|
||||
|
||||
Tue May 18 21:21:43 2004 NAKAMURA, Hiroshi <nakahiro@sarion.co.jp>
|
||||
|
||||
* lib/csv.rb: writes lines with "\n" when row separator is not given.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue