[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:
-
Adds a
Rack::Chunked
middleware that applies chunked encoding to the response body when appropriate. -
Removes the
Rack::Lint
requirement that aContent-Length
header be present in responses. -
Modifies all server handlers so that the
Rack::ContentLength
andRack::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
-
Ryan Tomayko March 12th, 2009 @ 11:23 PM
- State changed from new to resolved
Merged. Awesome. Thanks guys.
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.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป