[MacRuby-devel] [MacRuby] #750: Net::HTTP.get fails
MacRuby
ruby-noreply at macosforge.org
Thu Jun 17 06:18:02 PDT 2010
#750: Net::HTTP.get fails
-----------------------------------+----------------------------------------
Reporter: joecannatti@… | Owner: lsansonetti@…
Type: defect | Status: new
Priority: blocker | Milestone: MacRuby 0.6
Component: MacRuby | Keywords: net http
-----------------------------------+----------------------------------------
On certain files, a simple HTTP GET will fail with the error: "TypeError:
can't convert nil into String". It happens on the same remote html files
every time and I cannot determine the cause. Use this code to recreate:
Net::HTTP.start('books.inomadics.com') do |http|
req = Net::HTTP::Get.new('/iPadia/2010/June/aboutsoccer.html')
res = http.request req
puts res.body
end
NOTE: works fine in irb, but fails in macirb
--
Ticket URL: <http://www.macruby.org/trac/ticket/750>
MacRuby <http://macruby.org/>
More information about the MacRuby-devel
mailing list