From 3e1902352a0c4857894121da23458eb66cf51702 Mon Sep 17 00:00:00 2001 From: ch3nnn Date: Thu, 29 Aug 2024 20:06:23 +0800 Subject: [PATCH] fix(rest): correct jwt tokenLookups syntax in engine_test --- rest/engine_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rest/engine_test.go b/rest/engine_test.go index 15f5a3d2a7cf..f2feaf3845e7 100644 --- a/rest/engine_test.go +++ b/rest/engine_test.go @@ -114,8 +114,8 @@ Verbose: true { priority: true, jwt: jwtSetting{ - enabled: true, - tokenKeys: []string{"Token", "X-Token"}, + enabled: true, + tokenLookups: []string{"header:Token", "query:Token", "form:Token"}, }, signature: signatureSetting{}, routes: []Route{{