Update src/core/upload/newapi_upload.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
演变
2026-03-27 15:07:21 +08:00
committed by GitHub
parent 5ab3a283c0
commit e13005119e

View File

@@ -117,10 +117,10 @@ def upload_to_newapi(
headers["Content-Type"] = "application/json; charset=utf-8"
logger.info("NEWAPI 上传 URL: %s", url)
logger.info("NEWAPI 请求头: %s", {
**headers,
"Authorization": f"Bearer {_mask_header_value(headers['Authorization'][7:])}",
})
safe_headers = dict(headers)
if "Authorization" in safe_headers:
safe_headers["Authorization"] = "REDACTED"
logger.debug("NEWAPI 请求头: %s", safe_headers)
resp = cffi_requests.post(
url,