Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
nleush committed Jul 2, 2024
1 parent 95ff6cf commit 2969c7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ function doFetch(fetch_func, h1_fetch_func, options) {
log(' -- doFetch h2 aborted error', uri);
resolve(doFetch(fetch_func, h1_fetch_func, Object.assign({}, options, {disable_http2: true})));

} else if (!options.stopRecursion && ERRORS_TO_RETRY.some(code => code.indexOf(error.code) > -1)) {
} else if (!options.stopRecursion && ERRORS_TO_RETRY.some(code => error.code.indexOf(code) > -1)) {

log(' -- doFetch ECONNRESET retry', error.code, uri);
resolve(doFetch(fetch_func, h1_fetch_func, Object.assign({}, options, {stopRecursion: true, disable_http2: true})));
Expand Down

0 comments on commit 2969c7b

Please sign in to comment.