Skip to content

Commit

Permalink
Fix Retry middleware documentation (#781)
Browse files Browse the repository at this point in the history
Based on the value defined in the code.
  • Loading branch information
BanzaiMan authored and iMacTia committed Mar 15, 2018
1 parent 77fc3ec commit 0989bf1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/faraday/request/retry.rb
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ def retry_statuses
# (default: 1)
# exceptions - The list of exceptions to handle. Exceptions can be
# given as Class, Module, or String. (default:
# [Errno::ETIMEDOUT, Timeout::Error,
# Error::TimeoutError])
# [Errno::ETIMEDOUT, 'Timeout::Error',
# Error::TimeoutError, Faraday::Error::RetriableResponse])
# methods - A list of HTTP methods to retry without calling retry_if. Pass
# an empty Array to call retry_if for all exceptions.
# (defaults to the idempotent HTTP methods in IDEMPOTENT_METHODS)
Expand Down

0 comments on commit 0989bf1

Please sign in to comment.