#750: Net::HTTP.get fails
-----------------------------------+----------------------------------------
Reporter: joecanna...@… | Owner: lsansone...@…
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/>
_______________________________________________
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel