Rainbows! Rack HTTP server user/dev discussion
 help / color / 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
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 index

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 publically 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: http://bogomips.org/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

Rainbows! Rack HTTP server user/dev discussion

Archives are clonable:
	git clone --mirror http://bogomips.org/rainbows-public
	git clone --mirror http://ou63pmih66umazou.onion/rainbows-public

Example config snippet for mirrors

Newsgroups are available over NNTP:
	nntp://news.public-inbox.org/inbox.comp.lang.ruby.rainbows
	nntp://ou63pmih66umazou.onion/inbox.comp.lang.ruby.rainbows

 note: .onion URLs require Tor: https://www.torproject.org/

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git