Skip to content

Commit

Permalink
Fix #648
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrlaltca committed Jul 27, 2017
1 parent e4371ef commit 91317ba
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions framework/Web/THttpResponse.php
Expand Up @@ -532,10 +532,7 @@ protected function sendHttpHeader()
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;
}
Expand Down

0 comments on commit 91317ba

Please sign in to comment.