diff options
author | Kevin Turner <kevin@janrain.com> | 2008-06-11 22:22:16 +0000 |
---|---|---|
committer | Kevin Turner <kevin@janrain.com> | 2008-06-11 22:22:16 +0000 |
commit | ba5412702cc2f377c3a736169c745e493365d88e (patch) | |
tree | 631ac0f9d4811f084d52df0fe647b42171b24658 | |
parent | ab5960e7b48a3a93b0b70cd01c5d3958ca56bff7 (diff) | |
download | php-openid-ba5412702cc2f377c3a736169c745e493365d88e.zip php-openid-ba5412702cc2f377c3a736169c745e493365d88e.tar.gz php-openid-ba5412702cc2f377c3a736169c745e493365d88e.tar.bz2 |
[project @ Accept response code 206 from fetcher results (part 2). Fixes #260]
-rw-r--r-- | Auth/OpenID/Consumer.php | 2 | ||||
-rw-r--r-- | Auth/OpenID/Discover.php | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Auth/OpenID/Consumer.php b/Auth/OpenID/Consumer.php index c85d66f..0d41bed 100644 --- a/Auth/OpenID/Consumer.php +++ b/Auth/OpenID/Consumer.php @@ -1401,7 +1401,7 @@ class Auth_OpenID_GenericConsumer { if ($response->status == 400) { return Auth_OpenID_ServerErrorContainer::fromMessage( $response_message); - } else if ($response->status != 200) { + } else if ($response->status != 200 and $response->status != 206) { return null; } diff --git a/Auth/OpenID/Discover.php b/Auth/OpenID/Discover.php index 1bdfa26..62aeb1d 100644 --- a/Auth/OpenID/Discover.php +++ b/Auth/OpenID/Discover.php @@ -475,7 +475,7 @@ function Auth_OpenID_discoverWithoutYadis($uri, &$fetcher) { $http_resp = @$fetcher->get($uri); - if ($http_resp->status != 200) { + if ($http_resp->status != 200 and $http_resp->status != 206) { return array($uri, array()); } @@ -545,4 +545,4 @@ function Auth_OpenID_discover($uri, &$fetcher) return $result; } -?>
\ No newline at end of file +?> |