dedimania investigate (no fix for the setchallengetimes) problem foudn yet

This commit is contained in:
kremsy
2017-06-28 14:27:56 +02:00
parent 1da8b61805
commit c7a50ff8cd
3 changed files with 16 additions and 9 deletions

View File

@ -89,9 +89,10 @@ class AsyncHttpRequest implements UsageInformationAble {
array_push($this->headers, 'Keep-Alive: timeout=600, max=2000');
array_push($this->headers, 'Connection: Keep-Alive');
$content = str_replace(array("\r", "\n"), '', $this->content);
//$content = str_replace(array("\r", "\n"), '', $this->content);
$content = $this->content;
if ($this->compression) {
$content = zlib_encode($content, 31);
$content = zlib_encode($this->content, ZLIB_ENCODING_GZIP);
array_push($this->headers, 'Content-Encoding: gzip');
}