summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Services/Yadis/PlainHTTPFetcher.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/Services/Yadis/PlainHTTPFetcher.php b/Services/Yadis/PlainHTTPFetcher.php
index 4fe7690..6b4b143 100644
--- a/Services/Yadis/PlainHTTPFetcher.php
+++ b/Services/Yadis/PlainHTTPFetcher.php
@@ -147,7 +147,12 @@ class Services_Yadis_PlainHTTPFetcher extends Services_Yadis_HTTPFetcher {
$headers = array();
- $headers[] = "POST ".$parts['path']." HTTP/1.0";
+ $post_path = $parts['path'];
+ if (isset($parts['query'])) {
+ $post_path .= '?' . $parts['query'];
+ }
+
+ $headers[] = "POST ".$post_path." HTTP/1.0";
$headers[] = "Host: " . $parts['host'];
$headers[] = "Content-type: application/x-www-form-urlencoded";
$headers[] = "Content-length: " . strval(strlen($body));