Update nacos.py

修复nacosClient中 get请求路由异常问题
This commit is contained in:
KcangYan 2021-11-02 18:38:32 +08:00 committed by GitHub
parent facc7c9ce7
commit 4692769065
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -234,7 +234,8 @@ class nacosBalanceClient:
url = url + "?"
for item in kwargs:
url = url + str(item) + "=" + str(kwargs[item]) + "&"
return requests.get(url[:-1], timeout=self.timeout).text
url = url[:-1]
return requests.get(url, timeout=self.timeout).text
if method == "POST" or method == "post":
if requestParamJson:
header = {"Content-type": "application/json;charset=utf-8"}