fix: 镜像站返回覆盖原服务器返回

This commit is contained in:
wxl0430
2025-07-20 09:55:11 +08:00
committed by GitHub
parent f1f460db68
commit 733f763b17

View File

@@ -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)