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 10:01:03 +0200 Message-ID: <87h7dmhdts.fsf@riseup.net> References: <20211011070355.20408-1-levenson@mmer.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21563"; 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 10:03:10 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 1maCkf-0005SY-HU for guile-bugs@m.gmane-mx.org; Tue, 12 Oct 2021 10:03:09 +0200 Original-Received: from localhost ([::1]:38258 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1maCke-0000Ez-FQ for guile-bugs@m.gmane-mx.org; Tue, 12 Oct 2021 04:03:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49772) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1maCkZ-0000CM-0X for bug-guile@gnu.org; Tue, 12 Oct 2021 04:03:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50068) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1maCkY-0004aL-Ns for bug-guile@gnu.org; Tue, 12 Oct 2021 04:03:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1maCkY-0004XV-IN for bug-guile@gnu.org; Tue, 12 Oct 2021 04:03: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 08:03: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.163402573517389 (code B ref -1); Tue, 12 Oct 2021 08:03:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 12 Oct 2021 08:02:15 +0000 Original-Received: from localhost ([127.0.0.1]:33381 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1maCjm-0004WP-Ps for submit@debbugs.gnu.org; Tue, 12 Oct 2021 04:02:14 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:40276) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1maCjk-0004WC-PM for submit@debbugs.gnu.org; Tue, 12 Oct 2021 04:02:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49622) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1maCjk-0007jL-Ex for bug-guile@gnu.org; Tue, 12 Oct 2021 04:02:12 -0400 Original-Received: from mx1.riseup.net ([198.252.153.129]:41162) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1maCji-0003ow-8e for bug-guile@gnu.org; Tue, 12 Oct 2021 04:02:11 -0400 Original-Received: from fews1.riseup.net (fews1-pn.riseup.net [10.0.1.83]) (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 4HT7Rf0TSxzF4qg; Tue, 12 Oct 2021 01:02:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1634025726; bh=s8zkjk0AO7eaMmPYhadGYLrdqJMODC8xoyhXPXP6eBI=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=RomA2obR3YhPrjafylbNUwkfbTYpMMKMxihPbtzNCICnXv4YUPRKbHg6F16qK4YHc yKEoJ4yiiQjrjdRQzpqR38E3N2pj3YYLcz/83AQBZkjUc9v4wqSgCO3vG/bmNsfRpM UWtnlXYM58n99iDMfprxb7STVmMnLqxXf2+Y34Pw= X-Riseup-User-ID: 9009DAFA6C0F5E1A62075D39C4858D5F3751B8E658D2C49A0106135606A3D0B2 Original-Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews1.riseup.net (Postfix) with ESMTPSA id 4HT7Rc61T8z5wDQ; Tue, 12 Oct 2021 01:02:04 -0700 (PDT) In-Reply-To: <20211011070355.20408-1-levenson@mmer.org> (Alexey Abramov via's message of "Mon, 11 Oct 2021 09:03:55 +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:10188 Archived-At: I don't think the reason phrase is optional, even though it can be just a whitespace. Even if I'm not mistaken, however, I don't see the reason for Guile not to be able to parse the status line without a space at the end. Aside from that consider a string "HTTP/1.1 ", which should be a bad response because the status code should definitely be obligatory, however it passes through the (and d0 d1) check after applying this patch.