We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f472f9 commit db7a4efCopy full SHA for db7a4ef
README.md
@@ -99,7 +99,7 @@ Install with [npm](https://npmjs.org/package/requestretry).
99
* @param {Object} response
100
* @return {Boolean} true if the request should be retried
101
*/
102
-function myRetryStrategy(err, response){
+function myRetryStrategy(err, response, body){
103
// retry the request if we had an error or if the response was a 'Bad Gateway'
104
return err || response.statusCode === 502;
105
}
0 commit comments