We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6d88dc4 commit fb9e3e3Copy full SHA for fb9e3e3
1 file changed
src/utils/proxy.ts
@@ -134,8 +134,10 @@ export async function sendProxy(
134
}
135
136
// Send as stream
137
- for await (const chunk of response.body as any as AsyncIterable<Uint8Array>) {
138
- event.node.res.write(chunk);
+ if (response.body) {
+ for await (const chunk of response.body as any as AsyncIterable<Uint8Array>) {
139
+ event.node.res.write(chunk);
140
+ }
141
142
return event.node.res.end();
143
0 commit comments