Fix canvas host header test type · openclaw/openclaw@ee0c817
gumadeiras
·
2026-04-18
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -76,7 +76,9 @@ async function captureHandlerResponse(
|
7676const res = {
|
7777statusCode: 200,
|
7878setHeader(name: string, value: number | string | readonly string[]) {
|
79-response.headers[name.toLowerCase()] = Array.isArray(value) ? [...value] : value;
|
79+const headerValue: number | string | string[] =
|
80+typeof value === "object" ? [...value] : value;
|
81+response.headers[name.toLowerCase()] = headerValue;
|
8082return this;
|
8183},
|
8284end(chunk?: string | Buffer) {
|
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。