Skip to content

Commit b4c756a

Browse files
conico974vicb
andauthored
Update packages/open-next/src/http/openNextResponse.ts
Co-authored-by: Victor Berchet <[email protected]>
1 parent c39b1c3 commit b4c756a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/open-next/src/http/openNextResponse.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ export class OpenNextNodeResponse extends Transform implements ServerResponse {
312312
//BE CAREFUL: Aws keeps rolling out broken streaming implementations even on accounts that had working ones before
313313
//This is not dependent on the node runtime used
314314
if (
315-
bodyLength < 1 &&
315+
bodyLength === 0 &&
316316
// We use an env variable here because not all aws account have the same behavior
317317
// On some aws accounts the response will hang if the body is empty
318318
// We are modifying the response body here, this is not a good practice

0 commit comments

Comments
 (0)