make-fetch-happen
Advanced tools
Comparing version 1.4.0 to 1.5.0
@@ -5,2 +5,12 @@ # Change Log | ||
<a name="1.5.0"></a> | ||
# [1.5.0](https://github.com/zkat/make-fetch-happen/compare/v1.4.0...v1.5.0) (2017-04-04) | ||
### Features | ||
* **retry:** retry requests on 408 timeouts, too ([8d8b5bd](https://github.com/zkat/make-fetch-happen/commit/8d8b5bd)) | ||
<a name="1.4.0"></a> | ||
@@ -7,0 +17,0 @@ # [1.4.0](https://github.com/zkat/make-fetch-happen/compare/v1.3.1...v1.4.0) (2017-04-04) |
@@ -286,3 +286,4 @@ 'use strict' | ||
}) | ||
} else if (res.status >= 500) { | ||
} else if (res.status === 408 || res.status >= 500) { | ||
// 408 === timeout | ||
if (req.method === 'POST') { | ||
@@ -306,3 +307,3 @@ return res | ||
}, opts.retry === false ? { retries: 0 } : opts.retry).catch(err => { | ||
if (err.status >= 500) { | ||
if (err.status >= 500 || err.status === 408) { | ||
return err | ||
@@ -309,0 +310,0 @@ } else { |
{ | ||
"name": "make-fetch-happen", | ||
"version": "1.4.0", | ||
"version": "1.5.0", | ||
"description": "Opinionated, caching, retrying fetch client", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
38494
563