Skip to content

Commit

Permalink
Fix issue #1506 regarding documentation for default tries (#1509)
Browse files Browse the repository at this point in the history
  • Loading branch information
JosefButts authored and niftylettuce committed Sep 24, 2019
1 parent 67a5eee commit db35cdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ request

When given the `.retry()` method, SuperAgent will automatically retry requests, if they fail in a way that is transient or could be due to a flaky Internet connection.

This method has two optional arguments: number of retries (default 3) and a callback. It calls `callback(err, res)` before each retry. The callback may return `true`/`false` to control whether the request sould be retried (but the maximum number of retries is always applied).
This method has two optional arguments: number of retries (default 1) and a callback. It calls `callback(err, res)` before each retry. The callback may return `true`/`false` to control whether the request sould be retried (but the maximum number of retries is always applied).

request
.get('https://example.com/search')
Expand Down

0 comments on commit db35cdc

Please sign in to comment.