about summary refs log tree commit homepage
path: root/test
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-03-22 20:52:00 -0700
committerEric Wong <normalperson@yhbt.net>2009-03-22 20:52:27 -0700
commit018f827ebdc1668d2262ef1337386f896379e0f6 (patch)
treeb68430921dd6d2eedce01ebeb1ae86056331fedb /test
parent98ea5cca50b907e20d6357f425d7789bac1d1a47 (diff)
downloadunicorn-018f827ebdc1668d2262ef1337386f896379e0f6.tar.gz
Newer versions of Unicorn "enforce" this by splitting on "\n" to
handle Rack-style multi-value headers.
Diffstat (limited to 'test')
-rw-r--r--test/benchmark/dd.ru2
-rw-r--r--test/benchmark/response.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/benchmark/dd.ru b/test/benchmark/dd.ru
index 7e9a3fa..111fa2e 100644
--- a/test/benchmark/dd.ru
+++ b/test/benchmark/dd.ru
@@ -11,7 +11,7 @@ count = ENV['count'] ? ENV['count'].to_i : 1
 slice = (' ' * bs).freeze
 body = (1..count).map { slice }.freeze
 hdr = {
-  'Content-Length' => bs * count,
+  'Content-Length' => (bs * count).to_s.freeze,
   'Content-Type' => 'text/plain'.freeze
 }.freeze
 response = [ 200, hdr, body ].freeze
diff --git a/test/benchmark/response.rb b/test/benchmark/response.rb
index 95291f1..0ff0ac2 100644
--- a/test/benchmark/response.rb
+++ b/test/benchmark/response.rb
@@ -14,7 +14,7 @@ count = ENV['count'] ? ENV['count'].to_i : 1
 slice = (' ' * bs).freeze
 body = (1..count).map { slice }.freeze
 hdr = {
-  'Content-Length' => bs * count,
+  'Content-Length' => (bs * count).to_s.freeze,
   'Content-Type' => 'text/plain'.freeze
 }.freeze
 response = [ 200, hdr, body ].freeze