diff --git a/classes/file/FileHandler.class.php b/classes/file/FileHandler.class.php index 40e356aa1..f275e301e 100644 --- a/classes/file/FileHandler.class.php +++ b/classes/file/FileHandler.class.php @@ -149,7 +149,7 @@ $url_info['path'] = $path; } - $header = sprintf("GET %s HTTP/2.0\r\nHost: %s\r\nReferer: %s://%s\r\nRequestUrl: %s\r\n\r\n", $url_info['path'], $url_info['host'], $url_info['scheme'], $url_info['host'], Context::getRequestUri()); + $header = sprintf("GET %s HTTP/2.0\r\nHost: %s\r\nReferer: %s://%s\r\nRequestUrl: %s\r\nConnection: Close\r\n\r\n", $url_info['path'], $url_info['host'], $url_info['scheme'], $url_info['host'], Context::getRequestUri()); @fwrite($fp, $header); diff --git a/modules/admin/admin.admin.view.php b/modules/admin/admin.admin.view.php index c9bdce1b9..f8c2bab9e 100644 --- a/modules/admin/admin.admin.view.php +++ b/modules/admin/admin.admin.view.php @@ -54,7 +54,6 @@ if(!file_exists($cache_file) || filectime($cache_file)+ 60*60 < time()) { FileHandler::getRemoteFile($newest_news_url, $cache_file); } - if(file_exists($cache_file)) { $oXml = new XmlParser(); $buff = $oXml->parse(FileHandler::readFile($cache_file)); @@ -73,7 +72,6 @@ Context::set('news', $news); } } - $this->setTemplateFile('index'); }