Merge branch 'patch-1' of https://github.com/rekky/BeSimpleSoap into rekky-patch-1
This commit is contained in:
commit
4a97c2537e
|
@ -54,9 +54,16 @@ class SoapResponse extends CommonSoapResponse
|
|||
header('Content-Type: ' . $this->getContentType());
|
||||
// get content to send
|
||||
$response = $this->getContent();
|
||||
|
||||
// set Content-Length header
|
||||
header('Content-Length: '. strlen($response));
|
||||
if (function_exists('mb_strlen')) {
|
||||
$length = mb_strlen($response, '8bit');
|
||||
} else {
|
||||
$length = strlen($response);
|
||||
}
|
||||
header('Content-Length: ' . $length);
|
||||
|
||||
// send response to client
|
||||
echo $response;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue