diff options
author | Artemy Tregubenko <me@arty.name> | 2008-05-12 11:02:36 +0000 |
---|---|---|
committer | Artemy Tregubenko <me@arty.name> | 2008-05-12 11:02:36 +0000 |
commit | 9a39e5f7733c0588a532bbcef19e9d65b4bf0d29 (patch) | |
tree | 25d01e77f8e5c8a5ea2c632074be720220e622e3 /Auth | |
parent | 168c320b3b3261be04c464d20ada65b38311c8d4 (diff) | |
download | php-openid-9a39e5f7733c0588a532bbcef19e9d65b4bf0d29.zip php-openid-9a39e5f7733c0588a532bbcef19e9d65b4bf0d29.tar.gz php-openid-9a39e5f7733c0588a532bbcef19e9d65b4bf0d29.tar.bz2 |
[project @ Accept HTML when making YADIS discovery]
Some http servers strictly follow http spec and do not send html reply when text/html isn't listed in Accept: header. Because of
this YADIS discovery fails for these servers. This patch adds 'text/html' to Accept: header.
Diffstat (limited to 'Auth')
-rw-r--r-- | Auth/Yadis/Yadis.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Auth/Yadis/Yadis.php b/Auth/Yadis/Yadis.php index 4e03d11..78d61f1 100644 --- a/Auth/Yadis/Yadis.php +++ b/Auth/Yadis/Yadis.php @@ -281,7 +281,7 @@ class Auth_Yadis_Yadis { $result = new Auth_Yadis_DiscoveryResult($uri); $request_uri = $uri; - $headers = array("Accept: " . Auth_Yadis_CONTENT_TYPE); + $headers = array("Accept: " . Auth_Yadis_CONTENT_TYPE . ', text/html'); if (!$fetcher) { $fetcher = Auth_Yadis_Yadis::getHTTPFetcher($timeout); |