We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
write
1 parent 0ee24e2 commit e6e8ce9Copy full SHA for e6e8ce9
packages/angular/ssr/node/src/response.ts
@@ -72,7 +72,9 @@ export async function writeResponseToNodeResponse(
72
}
73
74
const canContinue = (destination as ServerResponse).write(value);
75
- if (!canContinue) {
+ if (canContinue === false) {
76
+ // Explicitly check for `false`, as AWS may return `undefined` even though this is not valid.
77
+ // See: https://github.com/CodeGenieApp/serverless-express/issues/683
78
await new Promise<void>((resolve) => destination.once('drain', resolve));
79
80
0 commit comments