summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Williams <samuel.williams@oriontransfer.co.nz>2020-01-12 09:52:28 +1300
committerSamuel Williams <samuel.williams@oriontransfer.co.nz>2020-01-12 10:23:10 +1300
commit10512e68717e734f530d8f4d2f668a8c0ea6d5f8 (patch)
tree4e65026802b2749cd7985f0a5f277d6e82e6c70b
parentdb922514f49bbc8756a55da3cffe5ed5c0463bee (diff)
downloadrack-10512e68717e734f530d8f4d2f668a8c0ea6d5f8.tar.gz
Remove chunked middleware from default server stack.
The chunked middleware assumes details about the protocol level implementation. Due to recent changes from HTTP_VERSION to SERVER_PROTOCOL, this dormant middleware now appears to be breaking a lot of assumptions. https://github.com/rack/rack/issues/1472 https://github.com/rack/rack/issues/1266
-rw-r--r--lib/rack/server.rb2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/rack/server.rb b/lib/rack/server.rb
index f0bc1500..6137f043 100644
--- a/lib/rack/server.rb
+++ b/lib/rack/server.rb
@@ -262,13 +262,11 @@ module Rack
m = Hash.new {|h, k| h[k] = []}
m["deployment"] = [
[Rack::ContentLength],
- [Rack::Chunked],
logging_middleware,
[Rack::TempfileReaper]
]
m["development"] = [
[Rack::ContentLength],
- [Rack::Chunked],
logging_middleware,
[Rack::ShowExceptions],
[Rack::Lint],