Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
diff --git a/lib/rack/server.rb b/lib/rack/server.rb
index 33d5389..27f1244 100644
--- a/lib/rack/server.rb
+++ b/lib/rack/server.rb
@@ -233,6 +233,7 @@ module Rack
logging_middleware,
[Rack::TempfileReaper]
]
+ m["production"] = m["deployment"]
m["development"] = [
[Rack::ContentLength],
[Rack::Chunked],
diff --git a/lib/unicorn.rb b/lib/unicorn.rb
index 467245d..974c373 100644
--- a/lib/unicorn.rb
+++ b/lib/unicorn.rb
@@ -67,7 +67,7 @@ module Unicorn
use Rack::Lint
run inner_app
end.to_app
- when "deployment"
+ when "deployment", "production"
Rack::Builder.new do
use Rack::ContentLength
use Rack::Chunked
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment