summary refs log tree commit
diff options
context:
space:
mode:
authorAkira Matsuda <ronnie@dio.jp>2022-05-11 05:25:59 +0900
committerGitHub <noreply@github.com>2022-05-11 08:25:59 +1200
commitb7d554a07d8d3f9791e3c253d7e42bfd37bff9fe (patch)
tree1727b401bd75b320e9df7a3faca26b7ae262ee7b
parentf0c79c9b1a387d426ef7a9ae9216b759b38d13b1 (diff)
downloadrack-b7d554a07d8d3f9791e3c253d7e42bfd37bff9fe.tar.gz
Reduce Array object allocation in the initializer (#1888)
-rw-r--r--lib/rack/content_type.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/rack/content_type.rb b/lib/rack/content_type.rb
index 48c91e6c..58c734a3 100644
--- a/lib/rack/content_type.rb
+++ b/lib/rack/content_type.rb
@@ -16,7 +16,8 @@ module Rack
     include Rack::Utils
 
     def initialize(app, content_type = "text/html")
-      @app, @content_type = app, content_type
+      @app = app
+      @content_type = content_type
     end
 
     def call(env)