Project

General

Profile

Bug #6889

Restore backwards compatibility of Net::HTTP

Added by drbrain (Eric Hodel) about 5 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
Normal
Target version:
ruby -v:
-
[ruby-core:47239]

Description

=begin
In Ruby 1.9.3 and earlier net/http defines a constant (({Net::HTTPSession})) which is an alias of (({Net::HTTP})).

In r35761 for #6435 I accidentally moved the constant to (({Net::HTTP::HTTPSession})).

The attached patch restores net/http to pre-r35761 behavior.
=end

Associated revisions

Revision 36810
Added by drbrain (Eric Hodel) about 5 years ago

  • lib/net/http/backward.rb (class Net): Restored Net::HTTPSession to fix backwards-compatibility with ancient Net::HTTP. [Bug #6889]

Revision 36810
Added by drbrain (Eric Hodel) about 5 years ago

  • lib/net/http/backward.rb (class Net): Restored Net::HTTPSession to fix backwards-compatibility with ancient Net::HTTP. [Bug #6889]

Revision 36810
Added by drbrain (Eric Hodel) about 5 years ago

  • lib/net/http/backward.rb (class Net): Restored Net::HTTPSession to fix backwards-compatibility with ancient Net::HTTP. [Bug #6889]

Revision 36810
Added by drbrain (Eric Hodel) about 5 years ago

  • lib/net/http/backward.rb (class Net): Restored Net::HTTPSession to fix backwards-compatibility with ancient Net::HTTP. [Bug #6889]

History

#1 [ruby-core:47246] Updated by naruse (Yui NARUSE) about 5 years ago

OK, commit it!

#2 Updated by drbrain (Eric Hodel) about 5 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r36810.
Eric, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


  • lib/net/http/backward.rb (class Net): Restored Net::HTTPSession to fix backwards-compatibility with ancient Net::HTTP. [Bug #6889]

Also available in: Atom PDF