summaryrefslogtreecommitdiff
path: root/src/download_helper.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2009-10-04 09:01:11 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2009-10-04 09:01:11 +0000
commitc0595d17ff8df87af95cbd3f4a430eecaf85cbf1 (patch)
tree6baf88d746aedff380a0680b99d740bad1d76ccf /src/download_helper.h
parentce3de835b4ca854b73b1f9dcb54131ba704e5115 (diff)
2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Fixed the bug that the option values changed by XML-RPC method(changeOption and changeGlobalOption) are overwritten to the previous value by the next these request which doesn't contain that option value. Supporse max-download-limit is initially 0. You changed this value to 100K by changeOption. Then you issue changeOption request to change max-upload-limit to 50K. This second request doesn't contain xml-download-limit, so it is back to initial value, 0. Another improvement is that exception is thrown when changeOption and changeGlobalOption request contains option name which doesn't allowed in each request. * src/DownloadEngine.h * src/XmlRpcMethod.cc * src/XmlRpcMethod.h * src/XmlRpcMethodImpl.cc * src/download_helper.cc * src/download_helper.h * test/XmlRpcMethodTest.cc
Diffstat (limited to 'src/download_helper.h')
-rw-r--r--src/download_helper.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/download_helper.h b/src/download_helper.h
index 44fe3bc2..41d7d914 100644
--- a/src/download_helper.h
+++ b/src/download_helper.h
@@ -39,7 +39,7 @@
#include <string>
#include <deque>
-#include <vector>
+#include <set>
#include "SharedHandle.h"
@@ -48,7 +48,7 @@ namespace aria2 {
class RequestGroup;
class Option;
-const std::vector<std::string>& listRequestOptions();
+const std::set<std::string>& listRequestOptions();
#ifdef ENABLE_BITTORRENT
// Create RequestGroup object using torrent file specified by