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=20Conchillo=20Flaqu=C3=A9?= Newsgroups: gmane.lisp.guile.devel Subject: [PATCH] web: authorization header scheme should be capitalized Date: Thu, 23 Jun 2022 12:15:23 -0700 Message-ID: <20220623191523.3489178-1-aconchillo@gmail.com> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15583"; mail-complaints-to="usenet@ciao.gmane.io" Cc: =?UTF-8?q?Aleix=20Conchillo=20Flaqu=C3=A9?= To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Thu Jun 23 21:16:18 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 1o4SJN-0003rz-Nm for guile-devel@m.gmane-mx.org; Thu, 23 Jun 2022 21:16:17 +0200 Original-Received: from localhost ([::1]:60944 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o4SJM-0000Fk-LW for guile-devel@m.gmane-mx.org; Thu, 23 Jun 2022 15:16:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58460) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o4SIe-0000DU-HT for guile-devel@gnu.org; Thu, 23 Jun 2022 15:15:32 -0400 Original-Received: from mail-pj1-x1031.google.com ([2607:f8b0:4864:20::1031]:40606) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o4SIc-00020C-T9 for guile-devel@gnu.org; Thu, 23 Jun 2022 15:15:32 -0400 Original-Received: by mail-pj1-x1031.google.com with SMTP id g16-20020a17090a7d1000b001ea9f820449so3536993pjl.5 for ; Thu, 23 Jun 2022 12:15:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=qDktpLjUqeqABJNybLJ4NkKey/2Au8/8M5vR7MNzs2s=; b=nK+cVMTu9W7qVBjLM8RPP5JOnKd5tu0NvSPep5bjYTTMSPHGp+Wox9YCPDY3rgsovo A/+m5sx0XMkxZpC7IDsUewDhX6xWgwlmJfIazbh5xNxTRuptcpNAZ4a7O84ZXTe5a5ta NCZAwc8kdSBXd8a4/S95xiFdxPGm9K8XqGkWRJWzWYPKSvi2zSZy7Aejk6Qd68MQjPmJ n7FIXwJLW+8Kvrifrqkceidy7+CaMgM2WKS/F+/Kfo7FLZ45T7oao0xUzlIjkBVabaBW BSKEAVbCJIyIGf5NZGwzd6woDvU5BjCt/qsI+WAFbxSaXMe8kMuY857ZpfSubirwYtuc 4sfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=qDktpLjUqeqABJNybLJ4NkKey/2Au8/8M5vR7MNzs2s=; b=ssFaBm9QW83mo8Y/anUgfk5jPLWIpxRokooR/Ysq1rKh6ZyPECGQA8rA1qDy8M895F cg7JdjkIxp/oWFyMD1HPuAi4XL9IjJhc8ANwgVJyqr+OBX4cO53C9TO2/AdpflJyR6ln 9sMqnQrekDsIrKYZLLByk/c3jbVrggzbC7rFthzsYzDzdeuW4axqtF+1b0VZp/zoDVyx WbvzFTz6+HQ+Zjal2NR9hMVTMx9/jCuYheLgBIi5cwcPOh+NaM14UDs0iMuckohDwliI nS5V7mmeUhwMaHca03JovJ+BqpfgGLcqk3mpVxIZG6xNSGWgtKxfGlG3p3LODTq4azH0 3bvA== X-Gm-Message-State: AJIora9B7ZQxZBg76ads6gFLfsTrO6NyE1gv9+tw2RsblCzJAxgdOkLZ ZsPqLUqpGvHVATIDxBeAOtWOx19jNto= X-Google-Smtp-Source: AGRyM1uDQAlO5CMgxG/1Ju7+7+7WZ1cqQZ5i4UOR39sMZRYQhG+2EVNQ3CUFIB5Y+JjSz4z3eNRKug== X-Received: by 2002:a17:90b:4c92:b0:1ec:ea7c:89af with SMTP id my18-20020a17090b4c9200b001ecea7c89afmr5578439pjb.195.1656011728678; Thu, 23 Jun 2022 12:15:28 -0700 (PDT) Original-Received: from localhost (cpe-198-72-134-0.socal.res.rr.com. [198.72.134.0]) by smtp.gmail.com with UTF8SMTPSA id x6-20020a1709028ec600b001638a171558sm146256plo.202.2022.06.23.12.15.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 23 Jun 2022 12:15:28 -0700 (PDT) X-Mailer: git-send-email 2.34.1 Received-SPF: pass client-ip=2607:f8b0:4864:20::1031; envelope-from=aconchillo@gmail.com; helo=mail-pj1-x1031.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, 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:21225 Archived-At: * module/web/http.scm (write-credentials): capitalize authorization header scheme. See, for example, https://datatracker.ietf.org/doc/html/rfc7617#section-2 --- module/web/http.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/web/http.scm b/module/web/http.scm index 4276e1744..312c28934 100644 --- a/module/web/http.scm +++ b/module/web/http.scm @@ -965,10 +965,10 @@ as an ordered alist." (define (write-credentials val port) (match val (('basic . cred) - (put-string port "basic ") + (put-string port "Basic ") (put-string port cred)) ((scheme . params) - (put-symbol port scheme) + (put-string port (string-titlecase (symbol->string scheme))) (put-char port #\space) (write-key-value-list params port)))) -- 2.34.1