nacos config init , and force add ts parms. (#20526)

Signed-off-by: zhanluxianshen <zhanluxianshen@163.com>
This commit is contained in:
湛露先生 2025-06-01 10:17:40 +08:00 committed by GitHub
parent c26e1929d6
commit b33f8b47ca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -60,8 +60,7 @@ class NacosHttpClient:
sign_str = tenant + "+"
if group:
sign_str = sign_str + group + "+"
if sign_str:
sign_str += ts
sign_str += ts # Directly concatenate ts without conditional checks, because the nacos auth header forced it.
return sign_str
def get_access_token(self, force_refresh=False):