technoweenie/faraday — pull request #158 by janko-m (2012-05-14 15:35:37+00:00)
Title: The 'retry' middleware should retry the request only on timeout

Before `StandardError` was also being rescued, which caused a problem that, if you wanted to write your own middleware (that can raise errors),
your error wouldn't be properly raised, instead, some primitive `Net::HTTP` error would be raised. Also, it doesn't really make sense to me
that it retries after StandardErrors.

I also corrected a typo, it was rescuing `Timeout::Error` instead of `Error::TimeoutError`.