From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: jakub-w@riseup.net Newsgroups: gmane.lisp.guile.bugs Subject: bug#51133: [PATCH 1/1] Tolerate http response line without reason phrase Date: Tue, 12 Oct 2021 12:03:09 +0200 Message-ID: <87bl3uh86a.fsf@riseup.net> References: <20211011070355.20408-1-levenson@mmer.org> <87h7dmhdts.fsf@riseup.net> <875yu2r6mp.fsf@delta.lan> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26984"; mail-complaints-to="usenet@ciao.gmane.io" Cc: levenson@mmer.org To: 51133@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Tue Oct 12 12:04:21 2021 Return-path: Envelope-to: guile-bugs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1maEdx-0006lA-6s for guile-bugs@m.gmane-mx.org; Tue, 12 Oct 2021 12:04:21 +0200 Original-Received: from localhost ([::1]:35656 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1maEdt-0005Xn-6f for guile-bugs@m.gmane-mx.org; Tue, 12 Oct 2021 06:04:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49128) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1maEde-0005VV-MR for bug-guile@gnu.org; Tue, 12 Oct 2021 06:04:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50234) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1maEde-0000mE-CU for bug-guile@gnu.org; Tue, 12 Oct 2021 06:04:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1maEde-0001IU-2Q for bug-guile@gnu.org; Tue, 12 Oct 2021 06:04:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: jakub-w@riseup.net Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Tue, 12 Oct 2021 10:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51133 X-GNU-PR-Package: guile X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-guile@gnu.org X-Debbugs-Original-Cc: 51133@debbugs.gnu.org, Alexey Abramov Original-Received: via spool by submit@debbugs.gnu.org id=B.16340330084932 (code B ref -1); Tue, 12 Oct 2021 10:04:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 12 Oct 2021 10:03:28 +0000 Original-Received: from localhost ([127.0.0.1]:33544 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1maEd6-0001HU-FV for submit@debbugs.gnu.org; Tue, 12 Oct 2021 06:03:28 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:38688) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1maEd5-0001HN-G6 for submit@debbugs.gnu.org; Tue, 12 Oct 2021 06:03:27 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48996) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1maEd4-0005F1-Jg for bug-guile@gnu.org; Tue, 12 Oct 2021 06:03:27 -0400 Original-Received: from mx1.riseup.net ([198.252.153.129]:52348) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1maEd2-0006Oi-Hg for bug-guile@gnu.org; Tue, 12 Oct 2021 06:03:25 -0400 Original-Received: from fews2.riseup.net (fews2-pn.riseup.net [10.0.1.84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.riseup.net", Issuer "R3" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 4HTB7Z64QmzF4vk; Tue, 12 Oct 2021 03:03:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1634033002; bh=CSjSg7BV+Is05b5jeOJGrDWLRXZ9OX/KonCEvTXjGBw=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=XaUfloEup0lty+9TN5RfT7+xcYlL9KPrGwdM/nXqri8/A3HDtCVHvgSJK7jrF2Lij dCrdCqig3016On6cafQsVVnHdlMHneKRsLP3t+XHvQgAzz+73QYdO4l/+QrP8cV5kQ kYRyqEySxQpg7okSzIBrRBamGAPYbzKa1M5Jx8m4= X-Riseup-User-ID: 481416EEB5ADAC0452E165B077E61829C5003A6F96B54A312A4FB577C5FEDBF6 Original-Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews2.riseup.net (Postfix) with ESMTPSA id 4HTB7Y4SHSz1yBS; Tue, 12 Oct 2021 03:03:21 -0700 (PDT) In-Reply-To: <875yu2r6mp.fsf@delta.lan> (Alexey Abramov via's message of "Tue, 12 Oct 2021 10:26:22 +0200") Received-SPF: pass client-ip=198.252.153.129; envelope-from=jakub-w@riseup.net; helo=mx1.riseup.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Original-Sender: "bug-guile" Xref: news.gmane.io gmane.lisp.guile.bugs:10191 Archived-At: You're right but you didn't address my second point. The fact that with this patch (call-with-input-string "HTTP/1.1 \n" (lambda (port) (read-response-line port))) passes the check for 'bad-response error inside read-response-line. It throws 'bad-header-component from non-negative-integer instead because d1 is always true if d0 is true.