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-03-15 10:48:12 -07:00
2023-03-21 15:01:45 +02:00
2023-03-05 02:59:01 -05:00
2022-12-13 13:14:20 +02:00
2022-11-04 00:09:27 +03:30
2023-03-19 00:39:29 -04:00
2023-02-18 19:17:21 -07:00
2022-12-13 13:14:20 +02:00
2023-03-15 10:48:15 -07:00
2023-03-03 02:37:45 -05:00
2023-02-20 09:09:05 +11:00
2023-03-15 10:48:12 -07:00
2023-03-01 12:21:53 -05:00
2023-03-21 15:01:45 +02:00
2022-09-11 23:18:43 -04:00
2023-03-15 10:48:14 -07:00
2023-02-17 09:08:41 -07:00
2023-03-17 17:50:25 +01:00
2022-04-15 17:01:01 -05:00
2023-03-09 14:55:13 -06:00