Bug #2779: Net::HTTP#get raises NoMethodError
http://redmine.ruby-lang.org/issues/show/2779

Author: Stephen Sykes
Status: Open, Priority: Normal
Category: lib
ruby -v: ruby 1.8.7 (2009-12-24 patchlevel 248) [i686-darwin10.2.0]

I think this was introduced in Revision 25851:

require 'net/http'
nh = Net::HTTP.new("does_not_exist_at_all.com")
nh.get("/")
NoMethodError: undefined method `closed?' for nil:NilClass
	from /usr/local/lib/ruby/1.8/net/http.rb:1060:in `request'
	from /usr/local/lib/ruby/1.8/net/http.rb:772:in `get'
	from (irb):11
	from /usr/local/lib/ruby/1.8/net/http.rb:2042


----------------------------------------
http://redmine.ruby-lang.org