]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fix Pingback
authorStephen Paul Weber <singpolyma@singpolyma.net>
Sat, 17 Oct 2015 13:39:46 +0000 (13:39 +0000)
committerStephen Paul Weber <singpolyma@singpolyma.net>
Sat, 17 Oct 2015 13:39:46 +0000 (13:39 +0000)
This code was using the HTTPRequest helpers wrong.  This commit sets the body directly instead of jamming the XML in as a POST param.

plugins/Linkback/LinkbackPlugin.php

index 9602fd7fceae681a010f359e43b6113a2510b672..4e49de670f7d9ffd1333f322c350b16356cad37f 100644 (file)
@@ -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,