diff options
author | Akira Matsuda <ronnie@dio.jp> | 2022-05-11 05:25:59 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-11 08:25:59 +1200 |
commit | b7d554a07d8d3f9791e3c253d7e42bfd37bff9fe (patch) | |
tree | 1727b401bd75b320e9df7a3faca26b7ae262ee7b | |
parent | f0c79c9b1a387d426ef7a9ae9216b759b38d13b1 (diff) | |
download | rack-b7d554a07d8d3f9791e3c253d7e42bfd37bff9fe.tar.gz |
Reduce Array object allocation in the initializer (#1888)
-rw-r--r-- | lib/rack/content_type.rb | 3 |
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) |