about summary refs log tree commit homepage
path: root/test/test_extras_try_gzip_static.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_extras_try_gzip_static.rb')
-rw-r--r--test/test_extras_try_gzip_static.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/test_extras_try_gzip_static.rb b/test/test_extras_try_gzip_static.rb
index 416af71..77eaf33 100644
--- a/test/test_extras_try_gzip_static.rb
+++ b/test/test_extras_try_gzip_static.rb
@@ -53,7 +53,8 @@ class TestExtrasTryGzipStatic < Testcase
       c = get_tcp_client(host, port)
       begin
         c.write "#{req}\r\n\r\n"
-        head, body = c.read.split(/\r\n\r\n/)
+        buf = c.read(666000)
+        head, body = buf.split(/\r\n\r\n/)
         blk.call(head)
         body
       ensure