mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-10 04:24:14 +09:00
원격파일 받을때 Connection: Close 헤더 추가
git-svn-id: http://xe-core.googlecode.com/svn/trunk@2265 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
d8adf05d1f
commit
7cd42d63d1
2 changed files with 1 additions and 3 deletions
|
|
@ -149,7 +149,7 @@
|
||||||
$url_info['path'] = $path;
|
$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);
|
@fwrite($fp, $header);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,6 @@
|
||||||
if(!file_exists($cache_file) || filectime($cache_file)+ 60*60 < time()) {
|
if(!file_exists($cache_file) || filectime($cache_file)+ 60*60 < time()) {
|
||||||
FileHandler::getRemoteFile($newest_news_url, $cache_file);
|
FileHandler::getRemoteFile($newest_news_url, $cache_file);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(file_exists($cache_file)) {
|
if(file_exists($cache_file)) {
|
||||||
$oXml = new XmlParser();
|
$oXml = new XmlParser();
|
||||||
$buff = $oXml->parse(FileHandler::readFile($cache_file));
|
$buff = $oXml->parse(FileHandler::readFile($cache_file));
|
||||||
|
|
@ -73,7 +72,6 @@
|
||||||
Context::set('news', $news);
|
Context::set('news', $news);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->setTemplateFile('index');
|
$this->setTemplateFile('index');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue