diff options
Diffstat (limited to 'Auth/Yadis/ParanoidHTTPFetcher.php')
-rw-r--r-- | Auth/Yadis/ParanoidHTTPFetcher.php | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/Auth/Yadis/ParanoidHTTPFetcher.php b/Auth/Yadis/ParanoidHTTPFetcher.php index d34dc1c..e10f8c1 100644 --- a/Auth/Yadis/ParanoidHTTPFetcher.php +++ b/Auth/Yadis/ParanoidHTTPFetcher.php @@ -73,9 +73,7 @@ class Auth_Yadis_ParanoidHTTPFetcher extends Auth_Yadis_HTTPFetcher { function get($url, $extra_headers = null) { - if ($this->isHTTPS($url) && !$this->supportsSSL()) { - Auth_OpenID::log("HTTPS URL unsupported fetching %s", - $url); + if (!$this->canFetchURL($url)) { return null; } @@ -167,19 +165,11 @@ class Auth_Yadis_ParanoidHTTPFetcher extends Auth_Yadis_HTTPFetcher { function post($url, $body, $extra_headers = null) { - $this->reset(); - - if ($this->isHTTPS($url) && !$this->supportsSSL()) { - Auth_OpenID::log("HTTPS URL unsupported fetching %s", - $url); + if (!$this->canFetchURL($url)) { return null; } - if (!$this->allowedURL($url)) { - Auth_OpenID::log("Fetching URL not allowed: %s", - $url); - return null; - } + $this->reset(); $c = curl_init(); |