about summary refs log tree commit homepage
path: root/t/hijack.ru
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2018-05-18 06:44:59 +0000
committerEric Wong <e@80x24.org>2019-01-02 21:40:46 +0000
commitbbd10a035fcb17ac29fd658c243a44393b0d3ac2 (patch)
tree099b6bccc5bc93016615e506b788e52584d80778 /t/hijack.ru
parent229286be544e76771d2a64637b3c692e51cbd878 (diff)
downloadrainbows-bbd10a035fcb17ac29fd658c243a44393b0d3ac2.tar.gz
Diffstat (limited to 't/hijack.ru')
-rw-r--r--t/hijack.ru2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/hijack.ru b/t/hijack.ru
index 16b5f38..f02507f 100644
--- a/t/hijack.ru
+++ b/t/hijack.ru
@@ -46,7 +46,7 @@ run lambda { |env|
       {
         "Content-Length" => r.bytesize.to_s,
         "rack.hijack" => proc do |sock|
-          io.write(r)
+          sock.write(r)
           lazy_close(sock)
         end
       },