diff options
author | emkael <emkael@tlen.pl> | 2018-01-31 23:47:04 +0100 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2018-01-31 23:47:04 +0100 |
commit | b08745d88d9232cf2c8d436c37ca556332769bd6 (patch) | |
tree | c08f6f8ba572f0d6eb687b5aa28a9522c9f0ae5c /lib/prado/framework/Web/THttpResponse.php | |
parent | ba5283736b47f513719b715631d3a1d3f86b6568 (diff) |
Upgrading Prado to 3.3.3
Diffstat (limited to 'lib/prado/framework/Web/THttpResponse.php')
-rw-r--r-- | lib/prado/framework/Web/THttpResponse.php | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/prado/framework/Web/THttpResponse.php b/lib/prado/framework/Web/THttpResponse.php index 48328c3..e11a715 100644 --- a/lib/prado/framework/Web/THttpResponse.php +++ b/lib/prado/framework/Web/THttpResponse.php @@ -531,10 +531,7 @@ class THttpResponse extends TModule implements ITextWriter if($this->getRequest()->getHttpProtocolVersion() === null) $protocol='HTTP/1.1'; - $phpSapiName = substr(php_sapi_name(), 0, 3); - $cgi = $phpSapiName == 'cgi' || $phpSapiName == 'fpm'; - - header(($cgi ? 'Status:' : $protocol).' '.$this->_status.' '.$this->_reason, true, TPropertyValue::ensureInteger($this->_status)); + header($protocol.' '.$this->_status.' '.$this->_reason, true, TPropertyValue::ensureInteger($this->_status)); $this->_httpHeaderSent = true; } |