Skip to content

Commit

Permalink
Amended for body-dependent retry strategies
Browse files Browse the repository at this point in the history
Amended documentation to reflect added support for body-dependent retry strategies.
  • Loading branch information
themusicroob committed Jun 21, 2016
1 parent 0f472f9 commit db7a4ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ Install with [npm](https://npmjs.org/package/requestretry).
* @param {Object} response
* @return {Boolean} true if the request should be retried
*/
function myRetryStrategy(err, response){
function myRetryStrategy(err, response, body){
// retry the request if we had an error or if the response was a 'Bad Gateway'
return err || response.statusCode === 502;
}
Expand Down

0 comments on commit db7a4ef

Please sign in to comment.