Skip to content

Empty body for responses that cannot have one - #549

Open
Mzack9999 wants to merge 1 commit into
mainfrom
fix-pipeline-bodyless
Open

Mzack9999 wants to merge 1 commit into
mainfrom
fix-pipeline-bodyless

Conversation

@Mzack9999

@Mzack9999 Mzack9999 commented Oct 26, 2026 •

Copy link
Copy Markdown
Member

Responses to HEAD and 1xx, 204 and 304 responses were read as if they had a body, so a missing length hung until the read deadline and a Content-Length took bytes from the next pipelined response. Both the pipeline client and the raw client now return an empty body for these responses (RFC 9112 section 6.3), with tests for pipelined sequences, HEAD and a gzip HEAD response.

Closes #550

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.

Bodyless responses hang or corrupt the next pipelined response

1 participant