mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 21:10:32 +01:00
Question: How to specify Transfer-Encoding response header? #101
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @o7g8 on GitHub (May 16, 2018).
Hello,
I need to specify my own
Transfer-Encodingresponse header as it's shown in the example below:The last
Assertfails, because theTransfer-Encodingis alwayschunked.Is it possible to override it?
WireMock.Net version
1.0.3.16.@StefH commented on GitHub (May 16, 2018):
Linked to #136
@StefH commented on GitHub (May 25, 2018):
Solved, see NuGet 1.0.3.18
@GMPrakhar commented on GitHub (Jan 15, 2021):
I am seeing this issue again.. Transfer-encoding always goes as chunked when used with WithBodyFromFile
@gorillapower commented on GitHub (Apr 17, 2023):
I am seeing this issue too, the Transfer-Encoding header should be allowed to contain multiple values, as long as the last value is chunked, then it should be valid as a chunked request.
https://www.rfc-editor.org/rfc/rfc9112#section-6.1-4:~:text=If%20any%20transfer%20coding%20other%20than%20chunked%20is%20applied%20to%20a%20response%27s%20content%2C%20the%20sender%20MUST%20either%20apply%20chunked%20as%20the%20final%20transfer%20coding%20or%20terminate%20the%20message%20by%20closing%20the%20connection.