2010-10-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>

Fixed the bug that file allocation is enabled in HTTP even if
	--file-allocation=none is specified.
	* src/HttpResponseCommand.cc
pull/1/head
Tatsuhiro Tsujikawa 2010-10-19 13:46:51 +00:00
parent d8d0c21c4d
commit 6b74a27586
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2010-10-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Fixed the bug that file allocation is enabled in HTTP even if
--file-allocation=none is specified.
* src/HttpResponseCommand.cc
2010-10-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Release 1.10.4

View File

@ -478,7 +478,10 @@ HttpDownloadCommand* HttpResponseCommand::createHttpDownloadCommand
command->setLowestDownloadSpeedLimit
(getOption()->getAsInt(PREF_LOWEST_SPEED_LIMIT));
command->installStreamFilter(filter);
getRequestGroup()->setFileAllocationEnabled(decideFileAllocation(filter));
if(getRequestGroup()->isFileAllocationEnabled() &&
!decideFileAllocation(filter)) {
getRequestGroup()->setFileAllocationEnabled(false);
}
getRequestGroup()->getURISelector()->tuneDownloadCommand
(getFileEntry()->getRemainingUris(), command);