diff options
author | tailor <cygnus@janrain.com> | 2006-05-08 20:28:23 +0000 |
---|---|---|
committer | tailor <cygnus@janrain.com> | 2006-05-08 20:28:23 +0000 |
commit | 4db77595677049b2d4772bc430ec875a5a5f8658 (patch) | |
tree | d941fb2315a081f914de37cc320145b7552c4fba /Auth/OpenID/ParanoidHTTPFetcher.php | |
parent | 7a7293ab95d51daccd2b1c5809ffa8392bf0e802 (diff) | |
download | php-openid-4db77595677049b2d4772bc430ec875a5a5f8658.zip php-openid-4db77595677049b2d4772bc430ec875a5a5f8658.tar.gz php-openid-4db77595677049b2d4772bc430ec875a5a5f8658.tar.bz2 |
[project @ Added discovery unit tests and fixed other bugs.]
Diffstat (limited to 'Auth/OpenID/ParanoidHTTPFetcher.php')
-rw-r--r-- | Auth/OpenID/ParanoidHTTPFetcher.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Auth/OpenID/ParanoidHTTPFetcher.php b/Auth/OpenID/ParanoidHTTPFetcher.php index c84457b..c4e11cb 100644 --- a/Auth/OpenID/ParanoidHTTPFetcher.php +++ b/Auth/OpenID/ParanoidHTTPFetcher.php @@ -111,7 +111,8 @@ class Auth_OpenID_ParanoidHTTPFetcher extends Auth_OpenID_HTTPFetcher { } else { $redir = false; curl_close($c); - return array($code, $url, $body); + return new Services_Yadis_HTTPResponse($url, $code, + $headers, $body); } $off = $stop - time(); @@ -155,7 +156,8 @@ class Auth_OpenID_ParanoidHTTPFetcher extends Auth_OpenID_HTTPFetcher { $body = $this->data; curl_close($c); - return array($code, $url, $body); + return new Auth_OpenID_HTTPResponse($url, $code, + $this->headers, $body); } } |