Rack::Chunked and ContentLength middlewares by default
commit1077961a3f8933c65d39c7e6c9ed6ff3b6b53647
authorEric Wong <normalperson@yhbt.net>
Fri, 19 Aug 2011 20:47:29 +0000 (19 20:47 +0000)
committerEric Wong <normalperson@yhbt.net>
Fri, 19 Aug 2011 20:54:46 +0000 (19 20:54 +0000)
treea2f6646f1f52761a316e012964818a6fbdb7899f
parent7fe08addefb12bd2f4c63901e8cf631e9162ca51
Rack::Chunked and ContentLength middlewares by default

This is needed to match the behavior of Rack::Server for
RACK_ENV=(deployment|development), actually.  This won't
affect users of other RACK_ENV values.

This change has minor performance consequences, so users
negatively affected should set RACK_ENV to "none" instead for
full control of their middleware stack.

This mainly affects Rainbows!/Zbatery users since they have
persistent connections and /need/ Content-Length or
Transfer-Encoding:chunked headers.
lib/unicorn.rb