[SoapServer] Removed headers added by SoapServer::handle() method

This commit is contained in:
Francis Besset
2013-11-06 16:48:44 +01:00
parent e9429a5d03
commit 7fa666e9de
2 changed files with 10 additions and 9 deletions

View File

@ -51,12 +51,9 @@ class SoapResponse extends CommonSoapResponse
public function send()
{
// set Content-Type header
header('Content-Type: ' . $this->getContentType());
// get content to send
$response = $this->getContent();
// set Content-Length header
header('Content-Length: '. strlen($response));
// send response to client
echo $response;
header('Content-Type: '.$this->getContentType());
// send content to client
echo $this->getContent();
}
}
}