Closed
Description
For every HTTP/1.1 response, we need to check for Transfer-Encoding: chunked. We do this by calling HttpHeaders.ContainsParsedValue.
This check will succeed if "chunked" appears anywhere in the Transfer-Encoding list. However, Transfer-Encodings are ordered and so the check should only succeed if "chunked" is the final Transfer-Encoding value.
Note that sending "chunked" as a non-final Transfer-Encoding value is invalid server behavior, so we are only doing this incorrectly when the server is misbehaving. Still, we should adhere to the RFC here.
Relevant RFC: https://www.rfc-editor.org/rfc/rfc7230.html#section-3.3.1