We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
write
1 parent 9dd3f03 commit df1a33aCopy full SHA for df1a33a
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