From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Newsgroups: gmane.lisp.guile.bugs Subject: bug#51133: [PATCH 1/1] Tolerate http response line without reason phrase Date: Tue, 12 Oct 2021 11:11:43 +0200 Message-ID: <20211012091143.GA32113@tuxteam.de> References: <20211011070355.20408-1-levenson@mmer.org> <87h7dmhdts.fsf@riseup.net> <875yu2r6mp.fsf@delta.lan> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="pf9I7BMVVzbSWLtt" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33629"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/1.5.21 (2010-09-15) To: 51133@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Tue Oct 12 11:41:22 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 1maEHi-0008Wy-EA for guile-bugs@m.gmane-mx.org; Tue, 12 Oct 2021 11:41:22 +0200 Original-Received: from localhost ([::1]:35314 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1maEHh-000203-By for guile-bugs@m.gmane-mx.org; Tue, 12 Oct 2021 05:41:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37660) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1maDpK-0005Pj-MM for bug-guile@gnu.org; Tue, 12 Oct 2021 05:12:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50189) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1maDpK-0003Xc-D7 for bug-guile@gnu.org; Tue, 12 Oct 2021 05:12:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1maDpJ-0008Sq-WC for bug-guile@gnu.org; Tue, 12 Oct 2021 05:12:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Tue, 12 Oct 2021 09:12:01 +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 Original-Received: via spool by submit@debbugs.gnu.org id=B.163402991332522 (code B ref -1); Tue, 12 Oct 2021 09:12:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 12 Oct 2021 09:11:53 +0000 Original-Received: from localhost ([127.0.0.1]:33502 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1maDpA-0008SU-Vh for submit@debbugs.gnu.org; Tue, 12 Oct 2021 05:11:53 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:51424) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1maDp9-0008SM-CH for submit@debbugs.gnu.org; Tue, 12 Oct 2021 05:11:51 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37634) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1maDp7-0005DP-LT for bug-guile@gnu.org; Tue, 12 Oct 2021 05:11:51 -0400 Original-Received: from mail.tuxteam.de ([5.199.139.25]:40788) by eggs.gnu.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.90_1) (envelope-from ) id 1maDp5-0003Id-5m for bug-guile@gnu.org; Tue, 12 Oct 2021 05:11:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tuxteam.de; s=mail; h=From:In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:To:Date; bh=Onv1Q0zhTYpQOtWNVOhexWbp8fXLNif0emJIzhVugL0=; b=Sc4tBiCYmizljGBUE9VwyHx4wsVUYZrJk1JwMz20cOeBExhW6hHUNlrKVwEyUJAh2lnNY/A2QuGQL0Mr/P9h1w/OGvXKuLANYARuakc3LQVhPaHdNTKUZXOBA22v7LCVRit29yBgDvgaJ4naLzUQuEQPxSufdKVcGtFZlt7t/dAF5XSVoEdg8s0OTeP68uTSDJqVhXFr5/ON0LDATjGUr4V3YOSNnF8f454DDz8UhMs99ysjC0A4Q0nzY2vvPVLZS4lQJM+37uFQA908Ctoe1B5lNxRyJROjuKe1pS3y8r2hHdIk3hR71wXrqBT3flpvRGtdZw5qr4mHplgBwDn8SQ==; Original-Received: from tomas by mail.tuxteam.de with local (Exim 4.80) (envelope-from ) id 1maDp1-0008TO-RX for bug-guile@gnu.org; Tue, 12 Oct 2021 11:11:43 +0200 Content-Disposition: inline In-Reply-To: <875yu2r6mp.fsf@delta.lan> Received-SPF: pass client-ip=5.199.139.25; envelope-from=tomas@tuxteam.de; helo=mail.tuxteam.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, SPF_HELO_NONE=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:10190 Archived-At: --pf9I7BMVVzbSWLtt Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Oct 12, 2021 at 10:26:22AM +0200, Alexey Abramov via Bug reports fo= r GUILE, GNU's Ubiquitous Extension Language wrote: > Hi, >=20 > I agree that it is not a complient http response, According to The Book [1] ;-) there should be at least one space (SP) (as far as I understand this is really a true honest space, Unicode codepoint 32. It is /not/ part of the message (aka "reason phrase") , but a separator. The rule is: status-line =3D HTTP-version SP status-code SP reason-phrase CRLF The reason phrase itself can contain whatever funny whitespace it wants: reason-phrase =3D *( HTAB / SP / VCHAR / obs-text ) and it /can/ be empty. That said I'd agree that it makes sense to tolerate a missing SP there. The legal minimum seems thus to be HTTP-version SP status-code SP CRLF > but unfortunately I > came across with some http services (redfish, cimc from Cisco ) uh-oh. All bets are off, then ;-) > where they don't put a reason phrase. That would be OK, but they also eat the mandatory separator space before the empty reason phrase. Bad folks, bad ;-) As an onlooker I haven't much to say, but I think you are right (but not Cisco :) Cheers - t --pf9I7BMVVzbSWLtt Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAmFlUU8ACgkQBcgs9XrR2kZTVwCfdaJSRXNKQdl7sIHRFbA/ep5p rcQAnjBje2OXpyjIyrOP6SAtfIkN9Lbo =RAnY -----END PGP SIGNATURE----- --pf9I7BMVVzbSWLtt--