Browse Source

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
Tatsuhiro Tsujikawa 15 years ago
parent
commit
6b74a27586
2 changed files with 10 additions and 1 deletions
  1. 6 0
      ChangeLog
  2. 4 1
      src/HttpResponseCommand.cc

+ 6 - 0
ChangeLog

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

+ 4 - 1
src/HttpResponseCommand.cc

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