From 445823f6bbb1eeef744f6838b7a0c5aab34af57d Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 26 Dec 2008 21:01:57 +0000 Subject: - Patch #337783 by Dave Reid, drewish: array-itize drupal_http_requests()'s parameters. --- includes/xmlrpc.inc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'includes/xmlrpc.inc') diff --git a/includes/xmlrpc.inc b/includes/xmlrpc.inc index 25e043da4..4964838ee 100644 --- a/includes/xmlrpc.inc +++ b/includes/xmlrpc.inc @@ -439,7 +439,12 @@ function _xmlrpc() { $method = array_shift($args); } $xmlrpc_request = xmlrpc_request($method, $args); - $result = drupal_http_request($url, array("Content-Type" => "text/xml"), 'POST', $xmlrpc_request->xml); + $options = array( + 'headers' => array('Content-Type' => 'text/xml'), + 'method' => 'POST', + 'data' => $xmlrpc_request->xml, + ); + $result = drupal_http_request($url, $options); if ($result->code != 200) { xmlrpc_error($result->code, $result->error); return FALSE; -- cgit v1.2.3