Skip to content

Remove Content-Length header from HTTP 400 and 413 responses#1146

Merged
walkor merged 1 commit intowalkor:masterfrom
joanhey:400-headers
Apr 6, 2026
Merged

Remove Content-Length header from HTTP 400 and 413 responses#1146
walkor merged 1 commit intowalkor:masterfrom
joanhey:400-headers

Conversation

@joanhey
Copy link
Copy Markdown
Contributor

@joanhey joanhey commented Apr 3, 2026

The Content-Length field is optional in HTTP responses when the server closes the connection immediately after sending the headers.

PD: we can also maintain it, but we send extra bytes for nothing.

@walkor walkor merged commit 362e623 into walkor:master Apr 6, 2026
24 checks passed
@joanhey joanhey deleted the 400-headers branch April 6, 2026 15:29
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.

2 participants