While experimenting with XmlHttpRequest, I wanted to dump my req

[snip code]
def do_POST(req, res)
  puts "req=#{req.to_s}"  # BOOM, HTTPStatus::LengthRequired occured.
[snip code]

IMO, #to_s should never fail.


I think its related to a bad Content-Length:, but is not sure since its 
difficult to debug when #to_s fails.


PS. http://www.webrick.org/  seems to be down?

--
Simon Strandgaard
btw: thanks, WEBrick is the best.