Skip to content

Commit

Permalink
Updated Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
OleksiiSliusarenko committed Nov 28, 2018
1 parent ac78e14 commit 731c712
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,10 @@ function myRetryStrategy(err, response, body, options){
* options: {Object} new options for request
*/
function myRetryStrategy(err, response, body, options){
options.url = 'new url'; //you can overwrite some attributes or create new object
return {
mustRetry: err || response.statusCode === 502,
options: {
// change some options property here, like `url`, `json` etc...
}
options: options, //then it should be passed back, it will be used for new requests
}
}

Expand Down

0 comments on commit 731c712

Please sign in to comment.