Bug #6889

Restore backwards compatibility of Net::HTTP

Added by Eric Hodel about 3 years ago. Updated about 3 years ago.

[ruby-core:47239]
Status:Closed
Priority:Normal
Assignee:Yui NARUSE
ruby -v:- Backport:

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

net.http.restore_backward_compatibility.patch Magnifier (350 Bytes) Eric Hodel, 08/18/2012 08:34 AM

Associated revisions

Revision 36810
Added by Eric Hodel about 3 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 Eric Hodel about 3 years ago

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

History

#1 Updated by Yui NARUSE about 3 years ago

OK, commit it!

#2 Updated by Eric Hodel about 3 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