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.
1 parent 2b7f7cb commit 04c524eCopy full SHA for 04c524e
packages/open-next/src/http/openNextResponse.ts
@@ -74,7 +74,8 @@ export class OpenNextNodeResponse extends Transform implements ServerResponse {
74
statusCode?: number,
75
) {
76
super();
77
- if (statusCode !== undefined) {
+ // We only set the status code if it is not a NaN and it is a number
78
+ if (!Number.isNaN(statusCode) && typeof statusCode === "number") {
79
this.statusCode = statusCode;
80
}
81
0 commit comments