This commit is contained in:
kremsy
2014-02-24 09:49:29 +01:00
committed by Steffen Schröder
parent 80ccc1a838
commit c23ab78916
2 changed files with 7 additions and 9 deletions

View File

@ -66,9 +66,9 @@ class AsynchronousFileReader {
return false;
}
if($keepAlive){
$header = array("Content-Type: " . $contentType, "Keep-Alive: " . $keepAlive, "Connection: Keep-Alive");
}else{
if ($keepAlive) {
$header = array("Content-Type: " . $contentType, "Keep-Alive: " . $keepAlive, "Connection: Keep-Alive");
} else {
$header = array("Content-Type: " . $contentType);
}
@ -134,7 +134,7 @@ class AsynchronousFileReader {
$content = str_replace(array("\r", "\n"), '', $content);
if ($compression) {
$content = gzencode($content);
$content = zlib_encode($content, 31);
$header = array("Content-Type: " . $contentType, "Keep-Alive: 300", "Connection: Keep-Alive", "Content-Encoding: gzip");
} else {
$header = array("Content-Type: " . $contentType, "Keep-Alive: 300", "Connection: Keep-Alive");