From: Stephen Paul Weber Date: Sat, 17 Oct 2015 13:39:46 +0000 (+0000) Subject: Fix Pingback X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c7e08195e4f6c0d3e431f807342234e0a5a7ba1f;p=quix0rs-gnu-social.git Fix Pingback This code was using the HTTPRequest helpers wrong. This commit sets the body directly instead of jamming the XML in as a POST param. --- diff --git a/plugins/Linkback/LinkbackPlugin.php b/plugins/Linkback/LinkbackPlugin.php index 9602fd7fce..4e49de670f 100644 --- a/plugins/Linkback/LinkbackPlugin.php +++ b/plugins/Linkback/LinkbackPlugin.php @@ -196,9 +196,10 @@ class LinkbackPlugin extends Plugin $request = HTTPClient::start(); try { + $request->setBody(xmlrpc_encode_request('pingback.ping', $args)); $response = $request->post($endpoint, array('Content-Type: text/xml'), - xmlrpc_encode_request('pingback.ping', $args)); + false); $response = xmlrpc_decode($response->getBody()); if (xmlrpc_is_fault($response)) { common_log(LOG_WARNING,