Skip to content

fix: 204 code now explicitly sends no body#183

Open
max-andreasen wants to merge 1 commit intoEyevinn:mainfrom
EyevinnStudentDev:fix/204
Open

fix: 204 code now explicitly sends no body#183
max-andreasen wants to merge 1 commit intoEyevinn:mainfrom
EyevinnStudentDev:fix/204

Conversation

@max-andreasen
Copy link
Contributor

reply.code(204) can sometimes be defaulted to sending an empty string as body.
Fixed by having .send() after, which ensures no body is sent.

Closes #90

@max-andreasen max-andreasen requested a review from birme as a code owner January 28, 2026 14:24
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.

Returning 204 on delete should not send any content

1 participant