content_encoding: fix limit failure message

The message triggered earlier than intended and did not take the
transfer/content type into account.

Ref #21603
Reported-by: Joshua Rogers
Closes #21756
This commit is contained in:
Stefan Eissing 2026-05-26 15:27:22 +02:00 committed by Daniel Stenberg
parent a8e6f90a69
commit 049ec8a363
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
3 changed files with 6 additions and 5 deletions

View file

@ -51,7 +51,7 @@ Connection: TE
61
</errorcode>
<stderr mode="text">
curl: (61) Reject response due to more than 5 content encodings
curl: (61) Reject response exceeding limit of 5 transfer encodings
</stderr>
</verify>
</testcase>

View file

@ -59,7 +59,7 @@ Connection: TE
61
</errorcode>
<stderr mode="text">
curl: (61) Reject response due to more than 5 content encodings
curl: (61) Reject response exceeding limit of 5 transfer encodings
</stderr>
</verify>
</testcase>