diff options
author | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-08-23 22:42:12 +0000 |
---|---|---|
committer | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-08-23 22:42:12 +0000 |
commit | d212a89c380683490dc735c770855f08391540a1 (patch) | |
tree | 0eb04c7bdd7b54d88886b861a965ef6ed25054ae /lib/net | |
parent | ba475e4415736d50548c8ce42fbab7e67f740a35 (diff) | |
download | ruby-d212a89c380683490dc735c770855f08391540a1.tar.gz |
* lib/net/http/backward.rb (class Net): Restored Net::HTTPSession to
fix backwards-compatibility with ancient Net::HTTP. [Bug #6889]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36810 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/net')
-rw-r--r-- | lib/net/http/backward.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/net/http/backward.rb b/lib/net/http/backward.rb index 7ffaac77d1..faf47b8489 100644 --- a/lib/net/http/backward.rb +++ b/lib/net/http/backward.rb @@ -4,7 +4,10 @@ class Net::HTTP ProxyMod = ProxyDelta - HTTPSession = self +end + +module Net + HTTPSession = Net::HTTP end module Net::NetPrivate |