X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=src%2FRequest.php;h=2c4794086e91bc91608a2bd27dd42551209a5f80;hb=9c35037a23ea6491bdf710260e8958902fc07605;hp=7d5a8a0cff5c90d8a571aa948fdb6b8c6c29e192;hpb=a3b1d45eb2e1fd0712d574a423c6c4af8d512ee1;p=plcapi.git
diff --git a/src/Request.php b/src/Request.php
index 7d5a8a0..2c47940 100644
--- a/src/Request.php
+++ b/src/Request.php
@@ -2,9 +2,10 @@
namespace PhpXmlRpc;
+use PhpXmlRpc\Helper\Charset;
use PhpXmlRpc\Helper\Http;
-use PhpXmlRpc\Helper\XMLParser;
use PhpXmlRpc\Helper\Logger;
+use PhpXmlRpc\Helper\XMLParser;
class Request
{
@@ -52,7 +53,7 @@ class Request
$this->content_type = 'text/xml';
}
$this->payload = $this->xml_header($charsetEncoding);
- $this->payload .= '' . $this->methodname . "\n";
+ $this->payload .= '' . Charset::instance()->encodeEntities($this->methodname, PhpXmlRpc::$xmlrpc_internalencoding, $charsetEncoding) . "\n";
$this->payload .= "\n";
foreach ($this->params as $p) {
$this->payload .= "\n" . $p->serialize($charsetEncoding) .
@@ -356,6 +357,16 @@ class Request
return $r;
}
+ /**
+ * Kept the old name even if Request class was renamed, for compatibility.
+ *
+ * @return string
+ */
+ public function kindOf()
+ {
+ return 'msg';
+ }
+
/**
* Enables/disables the echoing to screen of the xmlrpc responses received.
*