Skip to content

Commit

Permalink
Docs: retry-after header should be lower case
Browse files Browse the repository at this point in the history
Using the example as it was, gives an undefined index error.
  • Loading branch information
Mark-Howe committed Nov 5, 2020
1 parent 0d25953 commit b68b4c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/examples/handling-errors.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ try {
if ($e->getCode() == 429) { // 429 is Too Many Requests
$lastResponse = $api->getRequest()->getLastResponse();

$retryAfter = $lastResponse['headers']['Retry-After']; // Number of seconds to wait before sending another request
$retryAfter = $lastResponse['headers']['retry-after']; // Number of seconds to wait before sending another request
} else {
// Some other kind of error
}
Expand Down

0 comments on commit b68b4c5

Please sign in to comment.