From 7cd42d63d11aaa98420a56de964a6546f81a69c9 Mon Sep 17 00:00:00 2001 From: zero Date: Thu, 9 Aug 2007 01:39:54 +0000 Subject: [PATCH] =?UTF-8?q?=EC=9B=90=EA=B2=A9=ED=8C=8C=EC=9D=BC=20?= =?UTF-8?q?=EB=B0=9B=EC=9D=84=EB=95=8C=20Connection:=20Close=20=ED=97=A4?= =?UTF-8?q?=EB=8D=94=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://xe-core.googlecode.com/svn/trunk@2265 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- classes/file/FileHandler.class.php | 2 +- modules/admin/admin.admin.view.php | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) 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'); }