Skip to content

Commit cdee822

Browse files
authored
fix: don't send token during token refresh (#123)
Fix #122
1 parent 55e57a8 commit cdee822

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/resty/etcd/v3.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ local function _request_uri(self, endpoint, method, uri, opts, timeout, ignore_a
5252
if err then
5353
return nil, err
5454
end
55+
headers.Authorization = self.jwt_token
5556
else
5657
keepalive = false -- jwt_token not keepalive
5758
end
58-
headers.Authorization = self.jwt_token
5959
end
6060

6161
local http_cli, err = utils.http.new()

0 commit comments

Comments
 (0)