2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>

Fixed the bug that prevents aria2 from downloading 0-length
	files via HTTP/FTP.
	* src/DefaultBtContext.cc
	* src/DefaultBtContext.h
	* src/DownloadContext.h
	* src/FtpNegotiationCommand.cc
	* src/HttpResponseCommand.cc
	* src/HttpResponseCommand.h
	* src/RequestGroup.cc
	* src/SingleFileDownloadContext.cc
	* src/SingleFileDownloadContext.h
	* test/BtPostDownloadHandlerTest.cc
	* test/MetalinkPostDownloadHandlerTest.cc
	* test/MockBtContext.h
This commit is contained in:
Tatsuhiro Tsujikawa 2008-11-26 15:22:54 +00:00
parent b1eee48ee3
commit b1edad42ff
13 changed files with 111 additions and 18 deletions

View file

@ -64,7 +64,7 @@ void MetalinkPostDownloadHandlerTest::testGetNextRequestGroups()
{
Option op;
SharedHandle<SingleFileDownloadContext> dctx
(new SingleFileDownloadContext(0, 0, "test.xml"));
(new SingleFileDownloadContext(1024, 0, "test.xml"));
RequestGroup rg(&op, std::deque<std::string>());
rg.setDownloadContext(dctx);
rg.initPieceStorage();