From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id C8E4F1F803 for ; Wed, 2 Jan 2019 21:43:22 +0000 (UTC) From: Eric Wong 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> In-Reply-To: <20190102214322.31290-1-e@80x24.org> References: <20190102214322.31290-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: --- 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