[Nitro] Bug in mongrel.rb?
james_b at neurogami.com
Wed Jun 14 02:27:39 EDT 2006
I thought try out the latest Mongrel (0.13, not formally released) with
Nitro 0.30, and was getting an error in mongrel.rb in the 'handle'
method when setting context.in:
def handle(req, res)
unless handle_file(req, res)
path = req.path_info
context = Context.new(@server)
context.in = StringIO.new(req.body || "")
I changed the call to StringIO.new to ensure it was getting a string:
context.in = StringIO.new(req.body.to_s || "")
and life was good.
I'm on a WinXP box with ruby 1.8.4 (2005-12-24) [i386-mswin32]
http://www.ruby-doc.org - Ruby Help & Documentation
http://www.artima.com/rubycs/ - The Journal By & For Rubyists
http://www.rubystuff.com - The Ruby Store for Ruby Stuff
http://web2.0validator.com - We're the Dot in Web 2.0
More information about the Nitro-general