Skip to content

Commit d9a3273

Browse files
szmarczaksindresorhus
authored andcommitted
Clarify retry behavior (sindresorhus#944)
1 parent 6cc3d9f commit d9a3273

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

readme.md

+2
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ const pipeline = promisify(stream.pipeline);
106106

107107
It's a `GET` request by default, but can be changed by using different methods or via `options.method`.
108108

109+
**By default, Got will retry on failure. To disable this option, set [`retry`](#retry) to `0`.**
110+
109111
#### got([url], [options])
110112

111113
Returns a Promise for a [`response` object](#response) or a [stream](#streams-1) if `options.isStream` is set to true.

0 commit comments

Comments
 (0)