From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Aleix_Conchillo_Flaqu=C3=A9?= Newsgroups: gmane.lisp.guile.devel Subject: Re: [PATCH] web: authorization header scheme should be capitalized Date: Fri, 24 Jun 2022 06:41:02 -0700 Message-ID: References: <20220623202759.3578506-1-aconchillo@gmail.com> <922957d6545149287a6aec7b9d258bf2dd7603ef.camel@telenet.be> <32d2790b6941f5bf5b9185bd1fc9f46d90fcc85e.camel@telenet.be> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000004890ca05e231b958" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24922"; mail-complaints-to="usenet@ciao.gmane.io" Cc: guile-devel To: Maxime Devos Original-X-From: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Fri Jun 24 15:41:31 2022 Return-path: Envelope-to: guile-devel@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 1o4jYw-0006IU-Mr for guile-devel@m.gmane-mx.org; Fri, 24 Jun 2022 15:41:30 +0200 Original-Received: from localhost ([::1]:41662 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o4jYv-0006au-KN for guile-devel@m.gmane-mx.org; Fri, 24 Jun 2022 09:41:29 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37720) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o4jYi-0006aj-J6 for guile-devel@gnu.org; Fri, 24 Jun 2022 09:41:16 -0400 Original-Received: from mail-pg1-x533.google.com ([2607:f8b0:4864:20::533]:44804) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o4jYh-0004zV-1Q for guile-devel@gnu.org; Fri, 24 Jun 2022 09:41:16 -0400 Original-Received: by mail-pg1-x533.google.com with SMTP id a14so2442332pgh.11 for ; Fri, 24 Jun 2022 06:41:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=gxtDfgGGovwPYus/NOVJSJtEysRcMBA98ud0Z4lYMCg=; b=goA7cDKT2n7rJu2uHgDGzN7l8UqqtWTfCVq74/3wsyB/dF2S0/C0f/mLYDlGsVdlwO xXeDWYpB1Clm3et4m1RrXtjv+cBf+zY8Hh4+bXtnA5ze2NbMYfxapb6QF6PdYqdAH9h3 5+iiOYrkSOYo0ogMqpuuhdiprBl7O8c/nSvUYpcrlPqNqKJFu/Ezqyq47i38hi9xP/gP 4iqNs7TS9Cuf9QHK3UZBdupksWdX1zm4VuX0YIKzFp7X2zxboXWRk2FSUSqu11Tuej6s al9BUz0w3dByZvSP4zbkDINVCqzJJQKSyzJADMclZyMXuonN1ZX1Tyz1lHvj9zoBgpAV hn3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=gxtDfgGGovwPYus/NOVJSJtEysRcMBA98ud0Z4lYMCg=; b=kzzFw9NjEIzjm9/dUuh6lOE24O6RJcktAh0tI82IolEdMcHXoLs5FVrOs+igXZ58SV ZFxMqnmd8qyfh8UtuNnwjL4Y4l0lRuEo+owkiX6o9eOHVezOupjOAgDHd5L/SdC0etyt ZxvRtJzk02TUhQ1Szgrg+BruorqKuDTRhHLvBfAwofVgzMuPXCquOMQyiq9W32OJFUmF L61pR8lRwDjHF5jMXdvgMx+Y/WrrNLHNVBBztIcQZsyfgEX1yIowS48FuJpI/P/3oQI+ z7SNF6gYRDcrAv5vjR8V71M9Av+UbJLKdoWatLWzC/n2JybnAk2+0QYmsWn4i/j+bMPQ 0PFg== X-Gm-Message-State: AJIora9r9qPSKAD/gzHJmlIGADwG7PWE0MpmE3chgSbwYGMRyUOIkyO0 WcR8DSZLXAJe2eyNKNm3n+RKE4c7HUmrBrqKc4k= X-Google-Smtp-Source: AGRyM1tQZ9aRSQwypwBtSqyn7P67qhLcD7FtLzM1owBGGiRBNlrOMdNyvEcXM2gm/JwOAcwztg7gdN6oN2Ay2tUSB78= X-Received: by 2002:a63:b514:0:b0:40c:9fc8:babe with SMTP id y20-20020a63b514000000b0040c9fc8babemr11946820pge.197.1656078073367; Fri, 24 Jun 2022 06:41:13 -0700 (PDT) In-Reply-To: <32d2790b6941f5bf5b9185bd1fc9f46d90fcc85e.camel@telenet.be> Received-SPF: pass client-ip=2607:f8b0:4864:20::533; envelope-from=aconchillo@gmail.com; helo=mail-pg1-x533.google.com 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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Original-Sender: "guile-devel" Xref: news.gmane.io gmane.lisp.guile.devel:21236 Archived-At: --0000000000004890ca05e231b958 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Jun 24, 2022 at 1:35 AM Maxime Devos wrote= : > Aleix Conchillo Flaqu=C3=A9 schreef op do 23-06-2022 om 18:46 [-0700]: > > Ah, got it. Yes, that would make sense. > > > > I was thinking about it again. I know that Guile complies with the > > standard but since, I would say, capitalized schemes is what most > > libraries use, would it make sense to switch to that? I don't really > > expect big companies to fix this kind of stuff fast and in the > > meantime we can't use Guile for certain things. I have to say I've > > never seen lowercase Authorization header schemes. > > As long as we remember to _also_ report the bug in the buggy > =E2=80=98consumers=E2=80=99 of the header (in this case, those big compan= ies) and > remember that lower-case isn't buggy, switching to the more > conventional title-case seems sensible to me. > > Great. I'll re-word the patch then and add your suggested additional tests. Thank you! Aleix --0000000000004890ca05e231b958 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Fri, Jun 24, 2022 at 1:35= AM Maxime Devos <maximedevos@= telenet.be> wrote:
Aleix Conchillo Flaqu=C3=A9 schreef op do 23-06-2022 om 18:46 [-= 0700]:
> Ah, got it. Yes, that would make sense.
>
> I was thinking about it again. I know that Guile complies with the
> standard but since, I would say, capitalized schemes is what most
> libraries use, would it make sense to switch to that? I don't real= ly
> expect big companies to fix this kind of stuff fast and in the
> meantime we can't use Guile for certain things. I have to say I= 9;ve
> never seen lowercase Authorization header schemes.

As long as we remember to _also_ report the bug in the buggy
=E2=80=98consumers=E2=80=99 of the header (in this case, those big companie= s) and
remember that lower-case isn't buggy, switching to the more
conventional title-case seems sensible to me.


Great. I'll re-word the patch then a= nd add your suggested additional tests.

Thank you!

Aleix
--0000000000004890ca05e231b958--