summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortailor <cygnus@janrain.com>2006-05-04 22:09:58 +0000
committertailor <cygnus@janrain.com>2006-05-04 22:09:58 +0000
commita071f57d19e8f3ee519d824189230a2c39287c4a (patch)
treeca079e4af80462017078e83e7f5dd6d2c7e7cfe5
parent010494197d0b849ef034120cd238fc23721d526a (diff)
downloadphp-openid-a071f57d19e8f3ee519d824189230a2c39287c4a.zip
php-openid-a071f57d19e8f3ee519d824189230a2c39287c4a.tar.gz
php-openid-a071f57d19e8f3ee519d824189230a2c39287c4a.tar.bz2
[project @ Fixed plain fetcher bugs]
-rw-r--r--Auth/OpenID/PlainHTTPFetcher.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/Auth/OpenID/PlainHTTPFetcher.php b/Auth/OpenID/PlainHTTPFetcher.php
index 94d0edb..afb5ace 100644
--- a/Auth/OpenID/PlainHTTPFetcher.php
+++ b/Auth/OpenID/PlainHTTPFetcher.php
@@ -70,7 +70,10 @@ class Auth_OpenID_PlainHTTPFetcher extends Auth_OpenID_HTTPFetcher {
$user_agent = "PHP OpenID Library Fetcher";
$headers = array(
- "GET ".$parts['path']." HTTP/1.1",
+ "GET ".$parts['path'].
+ (array_key_exists('query', $parts) ?
+ "?".$parts['query'] : "").
+ " HTTP/1.1",
"User-Agent: $user_agent",
"Host: ".$parts['host'].
($specify_port ? ":".$parts['port'] : ""),