seancribbs/webmachine-ruby — pull request #68 by pawelpacana (2012-09-11 20:02:09+00:00)
Title: Content-Type and Rack::Lint fixes.

I've run into problems when using Rack adapter with Webmachine due to Rack::Lint throwing errors with regard to `Content-Type` header (see https://github.com/pawelpacana/webmachine-example-with-rack).

According to RFC:
> Any HTTP/1.1 message containing an entity-body SHOULD include a
> Content-Type header field defining the media type of that body.

Along the way it turned out some of the specs were bogus. I've fixed them and introduced `ensure_content_type` similar to `ensure_content_length`.

Maybe `Content-Type` should be set elsewhere. What do you think?