diff options
author | José Valim <jose.valim@gmail.com> | 2011-05-23 10:27:46 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-05-23 10:28:00 +0200 |
commit | 6e5eedeb127f5bf9faf95460569931229a153cec (patch) | |
tree | 598f590567f6f97af18c677c9b95eb8b6650d872 /railties/lib/rails/commands | |
parent | c944cab6cec752c5c5582c5e351dd98d0619aa7a (diff) | |
download | rails-6e5eedeb127f5bf9faf95460569931229a153cec.tar.gz rails-6e5eedeb127f5bf9faf95460569931229a153cec.tar.bz2 rails-6e5eedeb127f5bf9faf95460569931229a153cec.zip |
Move content length to the server, this brings the same behavior as in rack 1.2.
Diffstat (limited to 'railties/lib/rails/commands')
-rw-r--r-- | railties/lib/rails/commands/server.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/railties/lib/rails/commands/server.rb b/railties/lib/rails/commands/server.rb index 505a4ca2bd..91c87514cf 100644 --- a/railties/lib/rails/commands/server.rb +++ b/railties/lib/rails/commands/server.rb @@ -78,6 +78,7 @@ module Rails middlewares = [] middlewares << [Rails::Rack::LogTailer, log_path] unless options[:daemonize] middlewares << [Rails::Rack::Debugger] if options[:debugger] + middlewares << [Rails::Rack::ContentLength] Hash.new(middlewares) end |