Skip to content

Commit

Permalink
Remove chunked middleware from default server stack.
Browse files Browse the repository at this point in the history
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.

#1472
#1266
  • Loading branch information
ioquatix committed Jan 11, 2020
1 parent da2f79c commit d0218ed
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/rack/server.rb
Expand Up @@ -262,13 +262,11 @@ def default_middleware_by_environment
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],
Expand Down

0 comments on commit d0218ed

Please sign in to comment.