Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuy Adorno <ruyadorno@hotmail.com>2020-10-09 21:31:48 +0300
committerRuy Adorno <ruyadorno@hotmail.com>2020-10-09 21:31:48 +0300
commit02737453bc2363daeef8c4e4b7d239e2299029b2 (patch)
tree2a1f899ae731d92f7202fa3e66db170cc341d15c /node_modules/make-fetch-happen
parent7bd47ca2c718df0a7d809f1992b7a87eece3f6dc (diff)
make-fetch-happen@8.0.10
Diffstat (limited to 'node_modules/make-fetch-happen')
-rw-r--r--node_modules/make-fetch-happen/index.js3
-rw-r--r--node_modules/make-fetch-happen/package.json2
2 files changed, 4 insertions, 1 deletions
diff --git a/node_modules/make-fetch-happen/index.js b/node_modules/make-fetch-happen/index.js
index fb2e115ff..5a0b15d46 100644
--- a/node_modules/make-fetch-happen/index.js
+++ b/node_modules/make-fetch-happen/index.js
@@ -256,6 +256,9 @@ function conditionalFetch (req, cachedRes, opts) {
}
function remoteFetchHandleIntegrity (res, integrity) {
+ if (res.status !== 200) {
+ return res // Error responses aren't subject to integrity checks.
+ }
const oldBod = res.body
const newBod = ssri.integrityStream({
integrity
diff --git a/node_modules/make-fetch-happen/package.json b/node_modules/make-fetch-happen/package.json
index 794283aab..594483fb1 100644
--- a/node_modules/make-fetch-happen/package.json
+++ b/node_modules/make-fetch-happen/package.json
@@ -1,6 +1,6 @@
{
"name": "make-fetch-happen",
- "version": "8.0.9",
+ "version": "8.0.10",
"description": "Opinionated, caching, retrying fetch client",
"main": "index.js",
"files": [