HEAD responses contain body
normalperson at yhbt.net
Thu Jun 13 19:45:45 UTC 2013
Jonathan Rudenberg <jonathan at titanous.com> wrote:
> On Jun 13, 2013, at 3:21 PM, Eric Wong <normalperson at yhbt.net> wrote:
> > Try the following:
> Thanks, this stack works.
Good to know!
> > I added the Rack::ContentLength (it's already in the default middleware
> > stack) since I believe Rack::Chunked adding the '0' is a violation of
> > rfc2616... I'll need to read more closely to be sure.
> Hmm, so this is a bug in Rack::Chunked? My reading of the spec says
> that the '0' is incorrect.
I think so, too. Can you report this to the Rack folks? (Or I can do it)
I've reproduced the issue with "rackup -s thin", too.
"rackup -s webrick" sets ContentLength, but that could be because
webrick was meant to work without Rack and adds its own headers.
More information about the mongrel-unicorn