Skip to content

fix: use .status() for 204 responses - #105

Open
MorganVonBrylan wants to merge 2 commits into
top-gg-community:masterfrom
MorganVonBrylan:master
Open

fix: use .status() for 204 responses#105
MorganVonBrylan wants to merge 2 commits into
top-gg-community:masterfrom
MorganVonBrylan:master

Conversation

@MorganVonBrylan

Copy link
Copy Markdown

.sendStatus() sends the status text as the response body. However, a 204 response (No Content) cannot have a body.

I doubt this will actually cause any issues, but it is the wrong method nonetheless.

.sendStatus() sends the status text as the response body. However, a 204 response (No Content) cannot have a body.
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.

1 participant