aboutsummaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/npm-profile/node_modules/make-fetch-happen/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/node_modules/npm-profile/node_modules/make-fetch-happen/index.js')
-rw-r--r--deps/npm/node_modules/npm-profile/node_modules/make-fetch-happen/index.js14
1 files changed, 0 insertions, 14 deletions
diff --git a/deps/npm/node_modules/npm-profile/node_modules/make-fetch-happen/index.js b/deps/npm/node_modules/npm-profile/node_modules/make-fetch-happen/index.js
index 0f2c164e19..d82811b63d 100644
--- a/deps/npm/node_modules/npm-profile/node_modules/make-fetch-happen/index.js
+++ b/deps/npm/node_modules/npm-profile/node_modules/make-fetch-happen/index.js
@@ -108,8 +108,6 @@ function cachingFetch (uri, _opts) {
if (opts.integrity) {
initializeSsri()
- // if verifying integrity, node-fetch must not decompress
- opts.compress = false
}
const isCachable = (opts.method === 'GET' || opts.method === 'HEAD') &&
@@ -355,10 +353,6 @@ function remoteFetch (uri, opts) {
if (!isMethodGetHead) {
return opts.cacheManager.delete(req).then(() => {
if (res.status >= 500 && req.method !== 'POST' && !isStream) {
- if (typeof opts.onRetry === 'function') {
- opts.onRetry(res)
- }
-
return retryHandler(res)
}
@@ -376,10 +370,6 @@ function remoteFetch (uri, opts) {
)
if (isRetriable) {
- if (typeof opts.onRetry === 'function') {
- opts.onRetry(res)
- }
-
return retryHandler(res)
}
@@ -447,10 +437,6 @@ function remoteFetch (uri, opts) {
throw err
}
- if (typeof opts.onRetry === 'function') {
- opts.onRetry(err)
- }
-
return retryHandler(err)
})
},