Skip to content

Conversation

@ZLima12
Copy link
Contributor

@ZLima12 ZLima12 commented Dec 17, 2025

Previously, POSTing to this endpoint would mean that the response would have two Content-Length headers: the one reflected from the request, and the new one that is for the response. This is improper, so this commit adds Content-Length to the headers excluded from reflection.

This was causing curl (as of 8.17.0, though the change might have happened earlier) to give a "weird server reply" error, which made several tests fail.

Previously, POSTing to this endpoint would mean that the response would
have two Content-Length headers: the one reflected from the request, and
the new one that is for the response. This is improper, so this commit
adds Content-Length to the headers excluded from reflection.

This was causing curl (as of 8.17.0, though the change might have
happened earlier) to give a "weird server reply" error, which made
several tests fail.
@COM8 COM8 assigned COM8 and ZLima12 and unassigned COM8 Jan 19, 2026
@COM8 COM8 self-requested a review January 19, 2026 17:55
@COM8 COM8 added the Bug 🐛 label Jan 19, 2026
@COM8
Copy link
Member

COM8 commented Jan 19, 2026

Thanks!

@COM8 COM8 merged commit 52e20d4 into libcpr:master Jan 19, 2026
35 of 37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants