We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5acd30d commit 955d2a5Copy full SHA for 955d2a5
packages/open-next/src/adapters/plugins/routing/util.ts
@@ -47,7 +47,8 @@ export async function proxyRequest(
47
proxyRes.on("end", function () {
48
const newBody = Buffer.concat(body).toString();
49
debug(`Proxying response`, {
50
- headers: proxyRes.getHeaders(),
+ // @ts-ignore TODO: get correct type for the proxyRes
51
+ headers: proxyRes.getHeaders?.() || proxyRes.headers,
52
body: newBody,
53
});
54
res.end(newBody);
0 commit comments