mirror of
https://github.com/denglihong2007/CRSim-PluginRepository
synced 2026-05-12 22:22:11 +08:00
fix: 镜像站返回覆盖原服务器返回
This commit is contained in:
@@ -17,7 +17,7 @@ with open(zip_path, 'rb') as f:
|
||||
)
|
||||
|
||||
with open(zip_path, 'rb') as f:
|
||||
r = requests.post(
|
||||
mirror_r = requests.post(
|
||||
mirror_url,
|
||||
files={'file': f},
|
||||
headers={'Authorization': f'Bearer {mirror_token}'}
|
||||
@@ -26,5 +26,5 @@ with open(zip_path, 'rb') as f:
|
||||
print(f"Server responded with status: {r.status_code}")
|
||||
print(r.text)
|
||||
|
||||
print(f"Mirror server responded with status: {r.status_code}")
|
||||
print(r.text)
|
||||
print(f"Mirror server responded with status: {mirror_r.status_code}")
|
||||
print(mirror_r.text)
|
||||
|
||||
Reference in New Issue
Block a user