summaryrefslogtreecommitdiff
path: root/cli/npm/cache.rs
diff options
context:
space:
mode:
authorMarcos Casagrande <marcoscvp90@gmail.com>2022-10-17 15:39:41 +0200
committerGitHub <noreply@github.com>2022-10-17 15:39:41 +0200
commitd0e78ca5c6abb75b306e669ed844dd3705992677 (patch)
treed0412e6d56707adca4a1d17467ed2a81627db227 /cli/npm/cache.rs
parent698ae4bfed1d4a88002be41cdbc24601ac71ddc1 (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