From 1cdb55bdabb66f0c1a5ccdc3e198296f322b153c Mon Sep 17 00:00:00 2001 From: leestana01 Date: Fri, 5 Jun 2026 17:24:33 +0900 Subject: [PATCH] fix(middleware): correct documented KeyAuth KeyLookup default DefaultKeyAuthConfig sets KeyLookup to "header:Authorization:Bearer " in v5, but the KeyAuthConfig.KeyLookup comment still shows the v4 default of "header:Authorization". Update the comment to match. Signed-off-by: leestana01 --- middleware/key_auth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/middleware/key_auth.go b/middleware/key_auth.go index e14bd9e2e..2dcb98039 100644 --- a/middleware/key_auth.go +++ b/middleware/key_auth.go @@ -22,7 +22,7 @@ type KeyAuthConfig struct { // KeyLookup is a string in the form of ":" or ":,:" that is used // to extract key from the request. - // Optional. Default value "header:Authorization". + // Optional. Default value "header:Authorization:Bearer ". // Possible values: // - "header:" or "header::" // `` is argument value to cut/trim prefix of the extracted value. This is useful if header