From: "djberg96 (Daniel Berger)" Date: 2013-07-16T22:41:26+09:00 Subject: [ruby-core:56045] [ruby-trunk - Bug #8645][Open] URI#find_proxy failure if scheme is nil Issue #8645 has been reported by djberg96 (Daniel Berger). ---------------------------------------- Bug #8645: URI#find_proxy failure if scheme is nil https://bugs.ruby-lang.org/issues/8645 Author: djberg96 (Daniel Berger) Status: Open Priority: Normal Assignee: Category: Target version: ruby -v: ruby 2.0.0p247 (2013-06-27) [i386-mingw32] Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN If the URI scheme is not present after a URI.parse call, the call to URI#find_proxy fails. require 'uri' u = URI.parse("ruby-lang.org") u.find_proxy The result is: c:/ruby2/lib/ruby/2.0.0/uri/generic.rb:1614:in `find_proxy': undefined method `downcase' 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. -- http://bugs.ruby-lang.org/