aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorRobin Dupret <robin.dupret@gmail.com>2015-06-23 16:59:30 +0200
committerRobin Dupret <robin.dupret@gmail.com>2015-06-23 17:06:47 +0200
commit707144a31e19a3d6c1cb237d4cb74cefa0124296 (patch)
tree5f875904c32b486156f1897a07e31385c430e31e /guides
parentde0a2a49a8a9f7176751093d31c74f4df858abde (diff)
downloadrails-707144a31e19a3d6c1cb237d4cb74cefa0124296.tar.gz
rails-707144a31e19a3d6c1cb237d4cb74cefa0124296.tar.bz2
rails-707144a31e19a3d6c1cb237d4cb74cefa0124296.zip
Remove the paragraph about Rails::Server#middleware
As of 56903585, the Rack::ContentLength middleware isn't included by default anymore. The only remaining middleware is Rack::Lock ; since it's only included when using WEBrick, it's certainly not worth documenting it in the guides. [ci skip]
Diffstat (limited to 'guides')
-rw-r--r--guides/source/rails_on_rack.md18
1 files changed, 0 insertions, 18 deletions
diff --git a/guides/source/rails_on_rack.md b/guides/source/rails_on_rack.md
index 99ab47d1db..1e2fe94010 100644
--- a/guides/source/rails_on_rack.md
+++ b/guides/source/rails_on_rack.md
@@ -58,22 +58,6 @@ class Server < ::Rack::Server
end
```
-Here's how it loads the middlewares:
-
-```ruby
-def middleware
- middlewares = []
- middlewares << [::Rack::ContentLength]
- Hash.new(middlewares)
-end
-```
-
-The following table explains the usage of the loaded middlewares:
-
-| Middleware | Purpose |
-| ----------------------- | --------------------------------------------------------------------------------- |
-| `Rack::ContentLength` | Counts the number of bytes in the response and set the HTTP Content-Length header |
-
### `rackup`
To use `rackup` instead of Rails' `rails server`, you can put the following inside `config.ru` of your Rails application's root directory:
@@ -81,8 +65,6 @@ To use `rackup` instead of Rails' `rails server`, you can put the following insi
```ruby
# Rails.root/config.ru
require ::File.expand_path('../config/environment', __FILE__)
-
-use Rack::ContentLength
run Rails.application
```