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

Set res.statusText on status() calls #3

Closed
rikilele opened this issue Jul 8, 2021 · 0 comments · Fixed by #8
Closed

Set res.statusText on status() calls #3

rikilele opened this issue Jul 8, 2021 · 0 comments · Fixed by #8
Labels
enhancement New feature or request

Comments

@rikilele
Copy link
Owner

rikilele commented Jul 8, 2021

Currently, res.status(code) only sets res.status to code.
Want to make it so that if a valid code is set, res.statusText is updated automatically.

Refer to RFC7231 for implementation.

@rikilele rikilele added the enhancement New feature or request label Jul 8, 2021
@rikilele rikilele changed the title Set statusText when calling status() Set res.statusText on status() calls Jul 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant