From 4804d476e0584c8b94e2c711f6f26fef5a595330 Mon Sep 17 00:00:00 2001 From: msincenselee Date: Wed, 15 Sep 2021 16:07:53 +0800 Subject: [PATCH] =?UTF-8?q?[update]=20=E6=94=AF=E6=8C=81=E7=9B=B4=E6=8E=A5?= =?UTF-8?q?http=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vnpy/api/rest/rest_client.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vnpy/api/rest/rest_client.py b/vnpy/api/rest/rest_client.py index 5f45ac70..0f86b5d2 100644 --- a/vnpy/api/rest/rest_client.py +++ b/vnpy/api/rest/rest_client.py @@ -404,7 +404,10 @@ class RestClient(object): try: with self._get_session() as session: request = self.sign(request) - url = self.make_full_url(request.path) + if request.path.startswith('http'): + url = request.path + else: + url = self.make_full_url(request.path) # send request uid = uuid.uuid4()