From 9c6c00c0abde2a17f0833e074f20114636a3341f Mon Sep 17 00:00:00 2001 Message-Id: <9c6c00c0abde2a17f0833e074f20114636a3341f.1638101267.git.avityazev@posteo.org> In-Reply-To: References: From: Aleksandr Vityazev Date: Sun, 28 Nov 2021 15:07:20 +0300 Subject: [PATCH 11/11] * oauth2 (oauth2-authz-bearer-header): Change arg name. --- oauth2.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/oauth2.el b/oauth2.el index 49a12bc..b8227a4 100644 --- a/oauth2.el +++ b/oauth2.el @@ -274,9 +274,9 @@ Return an `oauth2-token' structure." (if (string-match-p (rx "?") url) "&" "?") "access_token=" (oauth2-token-access-token token))) -(defun oauth2-authz-bearer-header (token) - "Return `Authoriztions: Bearer' header with TOKEN." - (cons "Authorization" (format "Bearer %s" token))) +(defun oauth2-authz-bearer-header (access-token) + "Return `Authoriztions: Bearer' header with ACCESS-TOKEN." + (cons "Authorization" (format "Bearer %s" access-token))) (defun oauth2-extra-headers (token extra-headers) "Return EXTRA-HEADERS with `Authorization: Bearer' header with TOKEN added." -- 2.34.0