[update] 支持直接http路径

This commit is contained in:
msincenselee 2021-09-15 16:07:53 +08:00
parent b3c5a23563
commit 4804d476e0

View File

@ -404,6 +404,9 @@ class RestClient(object):
try:
with self._get_session() as session:
request = self.sign(request)
if request.path.startswith('http'):
url = request.path
else:
url = self.make_full_url(request.path)
# send request