Permalink
Browse files

Fix Easy failing specs.

  • Loading branch information...
1 parent f95b8ed commit 1d69043257ebaa07cd41a6a8b58b923eeedd1d75 @gravis gravis committed Jun 10, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/typhoeus/easy.rb
@@ -242,7 +242,8 @@ def set_option(option, value)
def perform
set_headers()
easy_perform()
- if resp_code = response_code() && resp_code >= 200 && resp_code <= 299
+ resp_code = response_code()
+ if resp_code >= 200 && resp_code <= 299
success
else
failure

0 comments on commit 1d69043

Please sign in to comment.