mirror of
https://github.com/aria2/aria2.git
synced 2025-04-06 22:17:38 +03:00
2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Made 'fileIndex' parameter in aria2.changeUri XML-RPC method 1-based. * doc/aria2c.1.txt * src/XmlRpcMethodImpl.cc * test/XmlRpcMethodTest.cc
This commit is contained in:
parent
e5e561afba
commit
2cb0c8e69d
6 changed files with 33 additions and 25 deletions
|
@ -889,7 +889,7 @@ BDE ChangeUriXmlRpcMethod::process
|
|||
if(params.size() < 4 ||
|
||||
!params[0].isString() || !params[1].isInteger() ||
|
||||
!params[2].isList() || !params[3].isList() ||
|
||||
params[1].i() < 0) {
|
||||
params[1].i() <= 0) {
|
||||
throw DL_ABORT_EX("Bad request");
|
||||
}
|
||||
size_t pos = 0;
|
||||
|
@ -897,7 +897,7 @@ BDE ChangeUriXmlRpcMethod::process
|
|||
getPosParam(params, 4, posGiven, pos);
|
||||
|
||||
int32_t gid = util::parseInt(params[0].s());
|
||||
size_t index = params[1].i();
|
||||
size_t index = params[1].i()-1;
|
||||
const BDE& deluris = params[2];
|
||||
const BDE& adduris = params[3];
|
||||
SharedHandle<RequestGroup> group = findRequestGroup(e->_requestGroupMan, gid);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue