aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2015-06-17 16:18:43 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2015-06-17 16:18:43 -0700
commit56903585a099ab67a7acfaaef0a02db8fe80c450 (patch)
treeff64b4cfd280146f1fbb37442808bf24f6c0d014
parentffba8f79a2332398d4848d8987a42567001cbdf4 (diff)
downloadrails-56903585a099ab67a7acfaaef0a02db8fe80c450.tar.gz
rails-56903585a099ab67a7acfaaef0a02db8fe80c450.tar.bz2
rails-56903585a099ab67a7acfaaef0a02db8fe80c450.zip
Remove ContentLength middleware from the defaults.
ContentLength is not part of the rack SPEC since rack/rack@86ddc7a6ec68d7b6951c2dbd07947c4254e8bc0d If you want it, just add it as a middleware in your config.
-rw-r--r--railties/CHANGELOG.md5
-rw-r--r--railties/lib/rails/commands/server.rb1
2 files changed, 5 insertions, 1 deletions
diff --git a/railties/CHANGELOG.md b/railties/CHANGELOG.md
index ca07ff349c..c099ae2ec5 100644
--- a/railties/CHANGELOG.md
+++ b/railties/CHANGELOG.md
@@ -1,3 +1,8 @@
+* Remove ContentLength middleware from the defaults. If you want it, just
+ add it as a middleware in your config.
+
+ *Egg McMuffin*
+
* Make it possible to customize the executable inside rerun snippets.
*Yves Senn*
diff --git a/railties/lib/rails/commands/server.rb b/railties/lib/rails/commands/server.rb
index 546d3725d8..c1bd4072ac 100644
--- a/railties/lib/rails/commands/server.rb
+++ b/railties/lib/rails/commands/server.rb
@@ -78,7 +78,6 @@ module Rails
def middleware
middlewares = []
- middlewares << [::Rack::ContentLength]
# FIXME: add Rack::Lock in the case people are using webrick.
# This is to remain backwards compatible for those who are