Permalink
Browse files

fixed response code handling

  • Loading branch information...
1 parent 7f4a89c commit ecdd950949cbc1d9fc9386cfbccbc76fb7dde8a2 @dustinwhittle dustinwhittle committed Oct 4, 2009
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/Yahoo.inc
View
@@ -1793,7 +1793,8 @@ class OAuthClient {
'responseBody' => $response
);
- if($response["code"] <= 200 && $response["code"] > 300) {
+
+ if(($response["code"] > 200) && ($response["code"] < 300)) {
YahooLogger::error("HTTP request failed", $response);
$this->checkExpired($response["code"], $headerParser);

0 comments on commit ecdd950

Please sign in to comment.