]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Auth_Yadis_Yadis::PlainHTTPFetcher expects plain arrays, not hashes.
authorAdrian Lang <mail@adrianlang.de>
Sat, 21 Feb 2009 18:43:18 +0000 (19:43 +0100)
committerEvan Prodromou <evan@controlyourself.ca>
Fri, 27 Feb 2009 23:39:28 +0000 (15:39 -0800)
actions/finishremotesubscribe.php
actions/remotesubscribe.php
lib/omb.php

index 76db887deb4dca85f0347e5c46a18a4ee5021e82..acfacbdc1c4c4582372ec5b5a480e57442975fe9 100644 (file)
@@ -283,7 +283,7 @@ class FinishremotesubscribeAction extends Action
         $fetcher = Auth_Yadis_Yadis::getHTTPFetcher();
         $result = $fetcher->post($req->get_normalized_http_url(),
                                  $req->to_postdata(),
-                                 array('User-Agent' => 'Laconica/' . LACONICA_VERSION));
+                                 array('User-AgentLaconica/' . LACONICA_VERSION));
 
         common_debug('got result: "'.print_r($result,true).'"', __FILE__);
 
index f727a63b822f2acbe1f730a05a9a9739058ecc5a..7ea7acd6d336bb6e04056c1d63fd5e5df5155f3d 100644 (file)
@@ -321,8 +321,7 @@ class RemotesubscribeAction extends Action
 
         $result = $fetcher->post($req->get_normalized_http_url(),
                                  $req->to_postdata(),
-                                 array('User-Agent' => 'Laconica/' . LACONICA_VERSION));
-
+                                 array('User-Agent: Laconica/' . LACONICA_VERSION));
         if ($result->status != 200) {
             return null;
         }
index 29e14c75f76adff6255e62010b3e5e46b999b0d8..befcf4666a85bef45296aad94b84e8b1303e614b 100644 (file)
@@ -206,7 +206,7 @@ function omb_post_notice_keys($notice, $postnoticeurl, $tk, $secret)
 
     $result = $fetcher->post($req->get_normalized_http_url(),
                              $req->to_postdata(),
-                             array('User-Agent' => 'Laconica/' . LACONICA_VERSION));
+                             array('User-AgentLaconica/' . LACONICA_VERSION));
 
     common_debug('Got HTTP result "'.print_r($result,true).'"', __FILE__);
 
@@ -291,7 +291,7 @@ function omb_update_profile($profile, $remote_profile, $subscription)
     common_debug('postdata = '.$req->to_postdata(), __FILE__);
     $result = $fetcher->post($req->get_normalized_http_url(),
                              $req->to_postdata(),
-                             array('User-Agent' => 'Laconica/' . LACONICA_VERSION));
+                             array('User-AgentLaconica/' . LACONICA_VERSION));
 
     common_debug('Got HTTP result "'.print_r($result,true).'"', __FILE__);