Rainbows! Rack HTTP server user/dev discussion
 help / color / mirror / code / Atom feed
From: Eric Wong <e@80x24.org>
To: rainbows-public@bogomips.org
Subject: [PATCH 2/3] t/hijack.ru: avoid shadow warning
Date: Wed,  2 Jan 2019 21:43:21 +0000	[thread overview]
Message-ID: <20190102214322.31290-3-e@80x24.org> (raw)
In-Reply-To: <20190102214322.31290-1-e@80x24.org>

---
 t/hijack.ru | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 @@ def lazy_close(io)
       {
         "Content-Length" => r.bytesize.to_s,
         "rack.hijack" => proc do |sock|
-          io.write(r)
+          sock.write(r)
           lazy_close(sock)
         end
       },
-- 
EW


  parent reply	other threads:[~2019-01-02 21:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-02 21:43 [PATCH 0/3] various updates for Ruby 2.6 Eric Wong
2019-01-02 21:43 ` [PATCH 1/3] quiet mismatched indentation warnings Eric Wong
2019-01-02 21:43 ` Eric Wong [this message]
2019-01-02 21:43 ` [PATCH 3/3] t/test_isolate: various version updates Eric Wong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://yhbt.net/rainbows/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190102214322.31290-3-e@80x24.org \
    --to=e@80x24.org \
    --cc=rainbows-public@bogomips.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhbt.net/rainbows.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).