mirror of
https://github.com/RuoJi6/ARTEX.git
synced 2026-10-28 09:13:49 +08:00
fix: Repeater 一次性传输取消阶段超时并回收空闲连接,错误时不重复显示(Codex gpt-6.1-sol)(#42)
This commit is contained in:
1 parent
91d2fe456c
commit
32d732bdfa
3 files changed
+79
-1
No files matched your search
@@ -67,7 +67,7 @@ export function formatHeaders(headers: Record<string, string[]> | Record<string,
|
||||
}
|
||||
|
||||
export function buildRawResponse(response: RepeaterSendResponse): string {
|
||||
if (!response.status && response.error) return `错误: ${response.error}`;
|
||||
if (!response.status) return "";
|
||||
const statusLine = `${response.proto || "HTTP/1.1"} ${response.status_text || response.status}`.trim();
|
||||
const headers = formatHeaders(response.headers);
|
||||
return `${statusLine}\n${headers}\n\n${response.body}`;
|
||||
|
||||
Reference in new issue
Block a user