Skip to content

Commit

Permalink
Remove ContentLength middleware from the defaults.
Browse files Browse the repository at this point in the history
ContentLength is not part of the rack SPEC since rack/rack@86ddc7a
If you want it, just add it as a middleware in your config.
  • Loading branch information
tenderlove committed Jun 17, 2015
1 parent ffba8f7 commit 5690358
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 5 additions & 0 deletions 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*
Expand Down
1 change: 0 additions & 1 deletion railties/lib/rails/commands/server.rb
Expand Up @@ -78,7 +78,6 @@ def start

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
Expand Down

1 comment on commit 5690358

@chancancode
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.