Showing
1 changed file
with
2 additions
and
1 deletions
@@ -45,7 +45,8 @@ def check_http_status(url, content_type, params, headers = {}): | @@ -45,7 +45,8 @@ def check_http_status(url, content_type, params, headers = {}): | ||
45 | #ret['message'] = r.text | 45 | #ret['message'] = r.text |
46 | if r.status_code == requests.codes.ok: | 46 | if r.status_code == requests.codes.ok: |
47 | # json code | 47 | # json code |
48 | - ret["code"] = r.json()['code'] | 48 | + ret["code"] = r.json()['code'] |
49 | + ret['err'] = ret["code"] | ||
49 | else: | 50 | else: |
50 | ret["code"] = r.status_code | 51 | ret["code"] = r.status_code |
51 | ret["err"] = r.text | 52 | ret["err"] = r.text |
-
Please register or login to post a comment