Auth_Yadis_Yadis::PlainHTTPFetcher expects plain arrays, not hashes.
This commit is contained in:
parent
89197210cf
commit
616fd16bc5
@ -283,7 +283,7 @@ class FinishremotesubscribeAction extends Action
|
|||||||
$fetcher = Auth_Yadis_Yadis::getHTTPFetcher();
|
$fetcher = Auth_Yadis_Yadis::getHTTPFetcher();
|
||||||
$result = $fetcher->post($req->get_normalized_http_url(),
|
$result = $fetcher->post($req->get_normalized_http_url(),
|
||||||
$req->to_postdata(),
|
$req->to_postdata(),
|
||||||
array('User-Agent' => 'Laconica/' . LACONICA_VERSION));
|
array('User-Agent: Laconica/' . LACONICA_VERSION));
|
||||||
|
|
||||||
common_debug('got result: "'.print_r($result,true).'"', __FILE__);
|
common_debug('got result: "'.print_r($result,true).'"', __FILE__);
|
||||||
|
|
||||||
|
@ -321,8 +321,7 @@ class RemotesubscribeAction extends Action
|
|||||||
|
|
||||||
$result = $fetcher->post($req->get_normalized_http_url(),
|
$result = $fetcher->post($req->get_normalized_http_url(),
|
||||||
$req->to_postdata(),
|
$req->to_postdata(),
|
||||||
array('User-Agent' => 'Laconica/' . LACONICA_VERSION));
|
array('User-Agent: Laconica/' . LACONICA_VERSION));
|
||||||
|
|
||||||
if ($result->status != 200) {
|
if ($result->status != 200) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
@ -206,7 +206,7 @@ function omb_post_notice_keys($notice, $postnoticeurl, $tk, $secret)
|
|||||||
|
|
||||||
$result = $fetcher->post($req->get_normalized_http_url(),
|
$result = $fetcher->post($req->get_normalized_http_url(),
|
||||||
$req->to_postdata(),
|
$req->to_postdata(),
|
||||||
array('User-Agent' => 'Laconica/' . LACONICA_VERSION));
|
array('User-Agent: Laconica/' . LACONICA_VERSION));
|
||||||
|
|
||||||
common_debug('Got HTTP result "'.print_r($result,true).'"', __FILE__);
|
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__);
|
common_debug('postdata = '.$req->to_postdata(), __FILE__);
|
||||||
$result = $fetcher->post($req->get_normalized_http_url(),
|
$result = $fetcher->post($req->get_normalized_http_url(),
|
||||||
$req->to_postdata(),
|
$req->to_postdata(),
|
||||||
array('User-Agent' => 'Laconica/' . LACONICA_VERSION));
|
array('User-Agent: Laconica/' . LACONICA_VERSION));
|
||||||
|
|
||||||
common_debug('Got HTTP result "'.print_r($result,true).'"', __FILE__);
|
common_debug('Got HTTP result "'.print_r($result,true).'"', __FILE__);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user