Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(node): set default http server response code 200 #23977

Merged
merged 1 commit into from
May 26, 2024

Conversation

marvinhagemeister
Copy link
Contributor

Node sets the default HTTP response status code to 200 on the ServerResponse. We initialised it as undefined before which caused a problem with 11ty's dev server.

Thanks to @vrugtehagel for reporting this issue and finding the correct fix as well 🎉

Fixes #23970

Copy link
Member

@satyarohith satyarohith left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@marvinhagemeister marvinhagemeister merged commit 8806eac into main May 26, 2024
17 checks passed
@marvinhagemeister marvinhagemeister deleted the fix-node-status-code branch May 26, 2024 07:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Response statusCode in node:http; undefined in Deno, 200 in Node
3 participants