summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Auth/Yadis/PlainHTTPFetcher.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/Auth/Yadis/PlainHTTPFetcher.php b/Auth/Yadis/PlainHTTPFetcher.php
index 958d9c3..8882e3c 100644
--- a/Auth/Yadis/PlainHTTPFetcher.php
+++ b/Auth/Yadis/PlainHTTPFetcher.php
@@ -63,6 +63,10 @@ class Auth_Yadis_PlainHTTPFetcher extends Auth_Yadis_HTTPFetcher {
}
}
+ if (!array_key_exists('path', $parts)) {
+ $parts['path'] = '/';
+ }
+
$host = $parts['host'];
if ($parts['scheme'] == 'https') {