summaryrefslogtreecommitdiff
path: root/src/TrackerWatcherCommand.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2008-11-23 15:00:44 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2008-11-23 15:00:44 +0000
commit62105714efdf6422d049ca34808db96a2b6eabae (patch)
treee848b9fa9ceb10f62d170ac9004adb34fd724262 /src/TrackerWatcherCommand.cc
parentc104ac83195be28049561b027d846d836ba6cff3 (diff)
2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Use HEAD method to get file size from HTTP server for segmented downloading. The request to the BitTorrent Tracker always uses GET method because the response of the tracker is small and it doesn't need segmented download. * src/FtpNegotiationCommand.cc * src/HttpRequest.cc * src/HttpResponseCommand.cc * src/HttpSkipResponseCommand.cc * src/RequestGroup.cc * src/RequestGroup.h * src/TrackerWatcherCommand.cc * test/HttpRequestTest.cc
Diffstat (limited to 'src/TrackerWatcherCommand.cc')
-rw-r--r--src/TrackerWatcherCommand.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/TrackerWatcherCommand.cc b/src/TrackerWatcherCommand.cc
index 11007a7c..2eb5a1ea 100644
--- a/src/TrackerWatcherCommand.cc
+++ b/src/TrackerWatcherCommand.cc
@@ -57,6 +57,7 @@
#include "Logger.h"
#include "A2STR.h"
#include "SocketCore.h"
+#include "Request.h"
namespace aria2 {
@@ -92,7 +93,8 @@ bool TrackerWatcherCommand::execute() {
_trackerRequestGroup = createAnnounce();
if(!_trackerRequestGroup.isNull()) {
std::deque<Command*> commands;
- _trackerRequestGroup->createInitialCommand(commands, e);
+ _trackerRequestGroup->createInitialCommand(commands, e,
+ Request::METHOD_GET);
e->addCommand(commands);
logger->debug("added tracker request command");
}