mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 06:10:44 +00:00
Fix canvas host header test type
This commit is contained in:
@@ -76,7 +76,9 @@ async function captureHandlerResponse(
|
||||
const res = {
|
||||
statusCode: 200,
|
||||
setHeader(name: string, value: number | string | readonly string[]) {
|
||||
response.headers[name.toLowerCase()] = Array.isArray(value) ? [...value] : value;
|
||||
const headerValue: number | string | string[] =
|
||||
typeof value === "object" ? [...value] : value;
|
||||
response.headers[name.toLowerCase()] = headerValue;
|
||||
return this;
|
||||
},
|
||||
end(chunk?: string | Buffer) {
|
||||
|
||||
Reference in New Issue
Block a user