Address code review feedback: fix Promise.race, improve statusText, use English error messages

Co-authored-by: qaiu <[email protected]>
This commit is contained in:
copilot-swe-agent[bot]andqaiu committed 2025-12-06 22:52:37 +00:00
1 parent 9912e6fef1
commit 2a3244a8fa
2 files changed
+32 -2

No files matched your search

@@ -82,7 +82,7 @@ public class JsFetchBridge {
response = httpClient.getNoRedirect(url);
break;
default:
throw new IllegalArgumentException("不支持的HTTP方法: " + method);
throw new IllegalArgumentException("Unsupported HTTP method: " + method);
}
log.debug("Fetch请求完成: {} {} - 状态码: {}", method, url, response.statusCode());