add User-Agent to OMB requests
darcs-hash:20081211185525-5ed1f-ea300a9f824163ea7989baae4e4b439e58fd0881.gz
This commit is contained in:
parent
897aa87c8a
commit
06f99d4b55
|
@ -254,7 +254,8 @@ class FinishremotesubscribeAction extends Action {
|
|||
|
||||
$fetcher = Auth_Yadis_Yadis::getHTTPFetcher();
|
||||
$result = $fetcher->post($req->get_normalized_http_url(),
|
||||
$req->to_postdata());
|
||||
$req->to_postdata(),
|
||||
array('User-Agent' => 'Laconica/' . LACONICA_VERSION));
|
||||
|
||||
common_debug('got result: "'.print_r($result,TRUE).'"', __FILE__);
|
||||
|
||||
|
|
|
@ -287,7 +287,8 @@ class RemotesubscribeAction extends Action {
|
|||
$fetcher = Auth_Yadis_Yadis::getHTTPFetcher();
|
||||
|
||||
$result = $fetcher->post($req->get_normalized_http_url(),
|
||||
$req->to_postdata());
|
||||
$req->to_postdata(),
|
||||
array('User-Agent' => 'Laconica/' . LACONICA_VERSION));
|
||||
|
||||
if ($result->status != 200) {
|
||||
return NULL;
|
||||
|
|
|
@ -193,7 +193,8 @@ function omb_post_notice_keys($notice, $postnoticeurl, $tk, $secret) {
|
|||
}
|
||||
|
||||
$result = $fetcher->post($req->get_normalized_http_url(),
|
||||
$req->to_postdata());
|
||||
$req->to_postdata(),
|
||||
array('User-Agent' => 'Laconica/' . LACONICA_VERSION));
|
||||
|
||||
common_debug('Got HTTP result "'.print_r($result,TRUE).'"', __FILE__);
|
||||
|
||||
|
@ -275,7 +276,8 @@ function omb_update_profile($profile, $remote_profile, $subscription) {
|
|||
common_debug('request URL = '.$req->get_normalized_http_url(), __FILE__);
|
||||
common_debug('postdata = '.$req->to_postdata(), __FILE__);
|
||||
$result = $fetcher->post($req->get_normalized_http_url(),
|
||||
$req->to_postdata());
|
||||
$req->to_postdata(),
|
||||
array('User-Agent' => 'Laconica/' . LACONICA_VERSION));
|
||||
|
||||
common_debug('Got HTTP result "'.print_r($result,TRUE).'"', __FILE__);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user