원격파일 받을때 Connection: Close 헤더 추가

git-svn-id: http://xe-core.googlecode.com/svn/trunk@2265 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2007-08-09 01:39:54 +00:00
parent d8adf05d1f
commit 7cd42d63d1
2 changed files with 1 additions and 3 deletions

View file

@ -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);

View file

@ -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');
}