8000
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.
write
1 parent 2d03d8f commit ee8466dCopy full SHA for ee8466d
packages/angular/ssr/node/src/response.ts
@@ -76,7 +76,9 @@ export async function writeResponseToNodeResponse(
76
}
77
78
const canContinue = (destination as ServerResponse).write(value);
79
- if (!canContinue) {
+ if (canContinue === false) {
80
+ // Explicitly check for `false`, as AWS may return `undefined` even though this is not valid.
81
+ // See: https://github.com/CodeGenieApp/serverless-express/issues/683
82
await new Promise<void>((resolve) => destination.once('drain', resolve));
83
84
0 commit comments