seancribbs/webmachine-ruby — Issue #29: Webmachine::Request expects String-like body, adapters give IO-like bodies
Author: samwgoldman
Created: 2012-02-01 21:05:51+00:00
State: open

Mongrel request bodies are IO-like, and are passed directly into the Webmachine::Request object. https://github.com/seancribbs/webmachine-ruby/blob/master/lib/webmachine/adapters/mongrel.rb#L44

Rack request bodies are also IO-like. https://github.com/seancribbs/webmachine-ruby/blob/master/lib/webmachine/adapters/rack.rb#L54

Webrick behaves correctly, because it provides #to_s and #each.

I think I can fix this, but I'm unclear what the correct behavior should be.