There was an error while loading. Please reload this page.
1 parent db06933 commit 747e942Copy full SHA for 747e942
1 file changed
packages/angular/ssr/node/src/response.ts
@@ -17,13 +17,11 @@ import type { Http2ServerResponse } from 'node:http2';
17
*/
18
function isResponseDestroyedOrClosed(destination: ServerResponse | Http2ServerResponse): boolean {
19
return (
20
- Boolean(destination.destroyed) ||
21
- Boolean(destination.closed) ||
22
- Boolean(destination.writableEnded) ||
+ destination.destroyed ||
+ destination.closed ||
+ destination.writableEnded ||
23
('stream' in destination &&
24
- (!destination.stream ||
25
- Boolean(destination.stream.destroyed) ||
26
- Boolean(destination.stream.closed)))
+ (!destination.stream || destination.stream.destroyed || destination.stream.closed))
27
);
28
}
29
0 commit comments