Skip to content

Commit

Permalink
Merge pull request #3 from redcican/patch-2
Browse files Browse the repository at this point in the history
Update services.py
  • Loading branch information
easyautoml authored Apr 6, 2022
2 parents fffe003 + 422e178 commit f2b14d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def post(data, target_path, times=1):
# headers=headers
)

response_content = json.loads(response.content, encoding="utf8-")
response_content = json.loads(response.content, encoding="utf-8")

if response_content.get('code') != 200:
time.sleep(3)
Expand Down Expand Up @@ -60,7 +60,7 @@ def get(target_path, params={}, times=1):
# headers=headers
)

response_content = json.loads(response.content, encoding="utf8-")
response_content = json.loads(response.content, encoding="utf-8")

if response_content.get('code') == 200:
return response_content.get("result")
Expand Down

0 comments on commit f2b14d5

Please sign in to comment.