2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>

Defined default filename `index.html' as static const 
std::string
	* src/SingleFileDownloadContext.cc
	* src/SingleFileDownloadContext.h
pull/1/head
Tatsuhiro Tsujikawa 2008-05-14 15:19:26 +00:00
parent f26d64ce49
commit 237ec10329
3 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Defined default filename `index.html' as static const std::string
* src/SingleFileDownloadContext.cc
* src/SingleFileDownloadContext.h
2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Defined "[MEMORY]" as static const std::string.

View File

@ -37,6 +37,8 @@
namespace aria2 {
const std::string SingleFileDownloadContext::DEFAULT_FILENAME("index.html");
SingleFileDownloadContext::SingleFileDownloadContext(size_t pieceLength,
uint64_t totalLength,
const std::string& filename,
@ -56,7 +58,7 @@ void SingleFileDownloadContext::updateFileEntry()
} else if(!_filename.empty()) {
_fileEntry->setPath(_filename);
} else {
_fileEntry->setPath("index.html");
_fileEntry->setPath(DEFAULT_FILENAME);
}
}

View File

@ -167,6 +167,8 @@ public:
{
return _contentType;
}
static const std::string DEFAULT_FILENAME;
};
typedef SharedHandle<SingleFileDownloadContext> SingleFileDownloadContextHandle;