diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-06-29 05:27:18 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-06-29 17:48:11 -0700 |
commit | 4f05fb1a3b44f8eab1a9dda26d5b115f33a149cd (patch) | |
tree | e497aa94d7559f2825b97b19fdee076ab79b635c /lib/unicorn/http_request.rb | |
parent | 1e10654f81e74c4d11ab538b16dcc1b7bd36cb7f (diff) | |
download | unicorn-4f05fb1a3b44f8eab1a9dda26d5b115f33a149cd.tar.gz |
The default is false because some applications were not written to handle partial reads (even though IO#read allows it, not just IO#readpartial).
Diffstat (limited to 'lib/unicorn/http_request.rb')
-rw-r--r-- | lib/unicorn/http_request.rb | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/unicorn/http_request.rb b/lib/unicorn/http_request.rb index e25517b..b1cd8ed 100644 --- a/lib/unicorn/http_request.rb +++ b/lib/unicorn/http_request.rb @@ -17,11 +17,6 @@ module Unicorn "rack.version" => [1, 0].freeze, "SCRIPT_NAME" => "".freeze, - # some applications (like Echo) may want to change this to true - # We disable streaming by default since some (arguably broken) - # applications may not ever read the entire body and be confused - # when it receives a response after nothing has been sent to it. - Const::STREAM_INPUT => false, # this is not in the Rack spec, but some apps may rely on it "SERVER_SOFTWARE" => "Unicorn #{Const::UNICORN_VERSION}".freeze } |