about summary refs log tree commit homepage
path: root/test/unit/test_server.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-06-29 05:11:13 -0700
committerEric Wong <normalperson@yhbt.net>2009-06-29 05:11:13 -0700
commit2c53b32bf651966d3eb39850cc6be019eda51df0 (patch)
treef0287a19aef1e8270250fcf2ffa3c1a89ac0756f /test/unit/test_server.rb
parent0d3aa1eb6bc7646c9bde78b0fae4e34bc5876421 (diff)
downloadunicorn-2c53b32bf651966d3eb39850cc6be019eda51df0.tar.gz
Diffstat (limited to 'test/unit/test_server.rb')
-rw-r--r--test/unit/test_server.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/unit/test_server.rb b/test/unit/test_server.rb
index 0ce373f..22b9934 100644
--- a/test/unit/test_server.rb
+++ b/test/unit/test_server.rb
@@ -12,6 +12,8 @@ class TestHandler
 
   def call(env)
   #   response.socket.write("HTTP/1.1 200 OK\r\nContent-Type: text/plain\r\n\r\nhello!\n")
+    while env['rack.input'].read(4096)
+    end
     [200, { 'Content-Type' => 'text/plain' }, ['hello!\n']]
    end
 end