summaryrefslogtreecommitdiff
path: root/src/AbstractCommand.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-08-31 11:17:38 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-08-31 11:17:38 +0000
commit5cb09dabf5994c861b0bc794f0885f9b6758c216 (patch)
treea06930a05088378e435d43f501bd8f95fb0bcce8 /src/AbstractCommand.cc
parent3434be81101347dfbed4c50d46be6360f1ca074b (diff)
2010-08-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Fixed the bug which prevents HTTP redirection from working when downloading multiple files from same host. * src/AbstractCommand.cc * src/FileEntry.cc
Diffstat (limited to 'src/AbstractCommand.cc')
-rw-r--r--src/AbstractCommand.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/AbstractCommand.cc b/src/AbstractCommand.cc
index f8f976f4..d0b09157 100644
--- a/src/AbstractCommand.cc
+++ b/src/AbstractCommand.cc
@@ -285,6 +285,7 @@ bool AbstractCommand::execute() {
}
req_->addTryCount();
req_->resetRedirectCount();
+ req_->resetUri();
const unsigned int maxTries = getOption()->getAsInt(PREF_MAX_TRIES);
bool isAbort = maxTries != 0 && req_->getTryCount() >= maxTries;
if(isAbort) {