#35 ✓resolved
Ryan Tomayko

[PATCH] Automatic Content-Length and Transfer-Encoding: chunked handling

Reported by Ryan Tomayko | March 6th, 2009 @ 09:56 PM | in 1.0

Ticket to track the following discussion from the ML:

http://groups.google.com/group/r... http://groups.google.com/group/r...

The attached patch does a few things:

  1. Adds a Rack::Chunked middleware that applies chunked encoding to the response body when appropriate.

  2. Removes the Rack::Lint requirement that a Content-Length header be present in responses.

  3. Modifies all server handlers so that the Rack::ContentLength and Rack::Chunked (where appropriate) middleware are used automatically. See the commit message on that patch for details on each handler.

This also needs #34 (Rack::Utils.bytesize) but that could be factored out if necessary.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป