From 5d0de90e609a9013b2dc28d5677a3607788c0c55 Mon Sep 17 00:00:00 2001 From: nanoric Date: Wed, 10 Oct 2018 03:52:27 -0400 Subject: [PATCH] =?UTF-8?q?[Mod]=20HttpClient=EF=BC=9AHTTP=E8=AF=B7?= =?UTF-8?q?=E6=B1=82=E6=88=90=E5=8A=9F=E7=9A=84=E6=A0=87=E5=87=86=E4=BB=8E?= =?UTF-8?q?status=5Fcode=3D=3D200=E4=BF=AE=E6=94=B9=E4=B8=BAstatus=5Fcode?= =?UTF-8?q?=3D=3D2xx?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vnpy/network/HttpClient.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vnpy/network/HttpClient.py b/vnpy/network/HttpClient.py index cb30579d..0caf9366 100644 --- a/vnpy/network/HttpClient.py +++ b/vnpy/network/HttpClient.py @@ -210,7 +210,7 @@ class HttpClient(object): req._response = response httpStatusCode = response.status_code - if httpStatusCode == 200: + if httpStatusCode/100 == 2: jsonBody = response.json() req.callback(jsonBody, req) req._status = RequestStatus.success