Skip to content

Commit

Permalink
Fix readme typo (#1092)
Browse files Browse the repository at this point in the history
  • Loading branch information
zcsongor committed Feb 27, 2020
1 parent 13486cc commit fb8957c
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 @@ -578,7 +578,7 @@ got.post('https://example.com', {
hooks: {
beforeRetry: [
(options, error, retryCount) => {
if (error.statusCode === 413) { // Payload too large
if (error.response.statusCode === 413) { // Payload too large
options.body = getNewBody();
}
}
Expand Down

0 comments on commit fb8957c

Please sign in to comment.