diff options
-rw-r--r-- | Auth/Yadis/HTTPFetcher.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Auth/Yadis/HTTPFetcher.php b/Auth/Yadis/HTTPFetcher.php index 7dffc78..97617bf 100644 --- a/Auth/Yadis/HTTPFetcher.php +++ b/Auth/Yadis/HTTPFetcher.php @@ -85,7 +85,7 @@ class Auth_Yadis_HTTPFetcher { function _findRedirect($headers) { foreach ($headers as $line) { - if (stripos($line, "Location: ") === 0) { + if (strpos(strtolower($line), "location: ") === 0) { $parts = explode(" ", $line, 2); return $parts[1]; } |