From b08745d88d9232cf2c8d436c37ca556332769bd6 Mon Sep 17 00:00:00 2001 From: emkael Date: Wed, 31 Jan 2018 23:47:04 +0100 Subject: Upgrading Prado to 3.3.3 --- lib/prado/framework/Web/THttpResponse.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'lib/prado/framework/Web/THttpResponse.php') 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; } -- cgit v1.2.3