Frank Denis 9fedecf4ab
http.Client: don't prematurely check transfer_{encoding,compression} (#15040)
Common headers in a response are:

    Content-Encoding: gzip
    Transfer-Encoding: chunked

We used to return `HttpHeadersInvalid` if a `Transfer-Encoding` header
was received while the compression was already set.

However, Transfer-Encoding may not include compression. We should
only return an error if we are setting a value that was already set.

Fixes compatibility with a bunch of websites.
2023-03-23 10:05:58 +01:00
..
2023-01-31 15:09:35 -07:00
2023-01-31 15:09:35 -07:00
2023-01-02 19:18:33 -05:00
2022-08-04 18:02:01 -07:00
2022-08-04 18:09:10 -07:00
2023-02-04 15:19:53 -05:00
2022-11-04 00:09:27 +03:30