Regression: Rack::File sends Content-Lenght: 0 for HEAD requests #300

rkh opened this Issue Dec 30, 2011 · 2 comments

2 participants

Official Rack repositories member

This problem surfaces with static files when using Sinatra with Rack 1.4.0 (works with 1.3.x).

Official Rack repositories member

I added a test to Rack::File for this, and it's passing.

Rack::File didn't used to serve HEAD requests at all, and instead, sent the body along with it. I'll check the ContentLength middleware next.

@raggi raggi added a commit that referenced this issue Jan 18, 2012
@raggi raggi Add spec for #300. Appears to pass. 247331e
Official Rack repositories member
@raggi raggi closed this Jan 22, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment