URI#find_proxy failure if scheme is nil
If the URI scheme is not present after a URI.parse call, the call to URI#find_proxy fails.
u = URI.parse("ruby-lang.org")
The result is:
find_proxy': undefined methoddowncase' for nil:NilClass (NoMethodError)
This actually happens in 1.9.x as well.
I'm not sure what it should return in this case, but it shouldn't raise that error.
#1 Updated by Yui NARUSE 9 months ago
- Status changed from Open to Closed
- % Done changed from 0 to 100
This issue was solved with changeset r42153.
Daniel, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
- lib/uri/generic.rb (find_proxy): raise BadURIError if the URI is a relative URI. [Bug #8645]
#3 Updated by Tomoyuki Chikanaga 9 months ago
- Status changed from Assigned to Closed