diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-09-27 23:23:20 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-09-27 23:26:46 -0700 |
commit | 2f1155794a6a1709f9e48b8115d6bd3531b2d814 (patch) | |
tree | a3d34cebacf19f4d51910cf7d6b3ad92f9deb019 /lib | |
parent | 9d27c9a2ee7902788e0f8abc433c7da6302e4c24 (diff) | |
download | unicorn-2f1155794a6a1709f9e48b8115d6bd3531b2d814.tar.gz |
Array#concat avoids an intermediate Array object from being allocated (yes, still supporting Rails <= 1.2.x apps...)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/unicorn/cgi_wrapper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/unicorn/cgi_wrapper.rb b/lib/unicorn/cgi_wrapper.rb index 8c90e95..b6eeb33 100644 --- a/lib/unicorn/cgi_wrapper.rb +++ b/lib/unicorn/cgi_wrapper.rb @@ -66,7 +66,7 @@ class Unicorn::CGIWrapper < ::CGI # finalizes the response in a way Rack applications would expect def rack_response # @head[CONTENT_LENGTH] ||= @body.size - @headv[SET_COOKIE] += @output_cookies if @output_cookies + @headv[SET_COOKIE].concat(@output_cookies) if @output_cookies @headv.each_pair do |key,value| @head[key] ||= value.join("\n") unless value.empty? end |