修复使用旧pushplus推送后结果解析失败的问题 (#958)

This commit is contained in:
colinxu 2021-11-27 20:33:49 +08:00 committed by GitHub
parent fae26efb88
commit 349f14a7fc

View File

@ -285,6 +285,7 @@ def pushplus_bot(title: str, content: str) -> None:
else: else:
url_old = "http://pushplus.hxtrip.com/send" url_old = "http://pushplus.hxtrip.com/send"
headers["Accept"] = "application/json"
response = requests.post(url=url_old, data=body, headers=headers).json() response = requests.post(url=url_old, data=body, headers=headers).json()
if response["code"] == 200: if response["code"] == 200: