Permalink
Browse files

Use again Rack's ContentLength middleware part 2

  • Loading branch information...
1 parent 7f184aa commit d44702c830669e2647c073133bd6b09d7016424d @spastorino spastorino committed Oct 18, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 railties/lib/rails/commands/server.rb
@@ -78,6 +78,7 @@ def middleware
middlewares = []
middlewares << [Rails::Rack::LogTailer, log_path] unless options[:daemonize]
middlewares << [Rails::Rack::Debugger] if options[:debugger]
+ middlewares << [Rack::ContentLength]
Hash.new(middlewares)
end

0 comments on commit d44702c

Please sign in to comment.