diff options
author | Marcos Casagrande <marcoscvp90@gmail.com> | 2022-10-17 15:39:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-17 15:39:41 +0200 |
commit | d0e78ca5c6abb75b306e669ed844dd3705992677 (patch) | |
tree | d0412e6d56707adca4a1d17467ed2a81627db227 /cli/npm/cache.rs | |
parent | 698ae4bfed1d4a88002be41cdbc24601ac71ddc1 (diff) |
fix(ext/fetch): set accept-encoding: identity if range header is present (#16197)
https://fetch.spec.whatwg.org/#http-network-or-cache-fetch
> If httpRequest’s header list contains `Range`, then append
(`Accept-Encoding`, `identity`)
> to httpRequest’s header list.
>
> This avoids a failure when handling content codings with a part of an
encoded response.
> Additionally, many servers mistakenly ignore `Range` headers if a
non-identity encoding is accepted.
Diffstat (limited to 'cli/npm/cache.rs')
0 files changed, 0 insertions, 0 deletions