Browse Source

Fixed the bug that a remote metalink is not processed even if
'-o foo.metalink' is specified.
* src/MetalinkRequestInfo.cc

Tatsuhiro Tsujikawa 18 years ago
parent
commit
a405d0238e
3 changed files with 6 additions and 1 deletions
  1. 4 0
      ChangeLog
  2. 0 1
      TODO
  3. 2 0
      src/MetalinkRequestInfo.cc

+ 4 - 0
ChangeLog

@@ -68,6 +68,10 @@
 	Applied Ross's patch
 	* src/a2netcompat.h
 	* src/main.cc
+
+	Fixed the bug that prevents a remote metalink from not being processed
+	even if '-o foo.metalink' is specified.
+	* src/MetalinkRequestInfo.cc
 	
 2007-08-02  Tatsuhiro Tsujikawa  <tujikawa at rednoah dot com>
 

+ 0 - 1
TODO

@@ -39,4 +39,3 @@
 * used globally -> common.h
 
 * replace threw with thrown
-* fix the bug that causes a remote metalink fails.

+ 2 - 0
src/MetalinkRequestInfo.cc

@@ -163,6 +163,8 @@ RequestInfos MetalinkRequestInfo::execute() {
 #endif // ENABLE_MESSAGE_DIGEST
       groups.push_front(rg);
     }
+    // clear PREF_OUT, because PREF_OUT is a filename for metalink file itself.
+    op->put(PREF_OUT, "");
     MultiUrlRequestInfoHandle reqInfo = new MultiUrlRequestInfo(groups, op);
     nextReqInfos.push_back(reqInfo);
   } catch(RecoverableException* ex) {