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

Co-authored-by: qaiu <29825328+qaiu@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-12-06 22:52:37 +00:00
parent e346812c0a
commit 12a5a17a30
2 changed files with 32 additions and 2 deletions

View File

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