MDL-62584 xmlrpc: return correct content-length

This commit is contained in:
Marina Glancy 2018-05-28 11:14:42 +08:00
parent 6b2e04676a
commit 024ede2c6b

View file

@ -133,8 +133,9 @@ class webservice_xmlrpc_server extends webservice_base_server {
* @param Exception $ex
*/
protected function send_error($ex = null) {
$this->response = $this->generate_error($ex);
$this->send_headers();
echo $this->generate_error($ex);
echo $this->response;
}
/**