projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
90f6c8d
)
Incorporate Tim's Cleanup
author
Seamus Lee
<seamuslee001@gmail.com>
Sat, 8 Jun 2019 08:57:11 +0000
(18:57 +1000)
committer
Seamus Lee
<seamuslee001@gmail.com>
Sat, 8 Jun 2019 08:57:11 +0000
(18:57 +1000)
CRM/Utils/System/Base.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Utils/System/Base.php
b/CRM/Utils/System/Base.php
index e913fee17cca7f08710a9b9effdb1f97994a5c34..2e675243c58ad5f7adbd33ad482a2dcd4575bd0d 100644
(file)
--- a/
CRM/Utils/System/Base.php
+++ b/
CRM/Utils/System/Base.php
@@
-951,10
+951,7
@@
abstract class CRM_Utils_System_Base {
* @param \Psr\Http\Message\ResponseInterface $response
*/
public function sendResponse(\Psr\Http\Message\ResponseInterface $response) {
- if (function_exists('http_response_code')) {
- // PHP 5.4+
- http_response_code($response->getStatusCode());
- }
+ http_response_code($response->getStatusCode());
foreach ($response->getHeaders() as $name => $values) {
CRM_Utils_System::setHttpHeader($name, implode(', ', (array) $values));
}