~ubuntu-branches/ubuntu/trusty/aria2/trusty-proposed

« back to all changes in this revision

Viewing changes to src/bittorrent_helper.cc

  • Committer: Package Import Robot
  • Author(s): Kartik Mistry
  • Date: 2013-12-16 18:41:03 UTC
  • mfrom: (2.5.21 sid)
  • Revision ID: package-import@ubuntu.com-20131216184103-xzah3019zwut429g
Tags: 1.18.1-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
999
999
    uri += util::percentEncode(attrs->name);
1000
1000
  }
1001
1001
  for(auto & elem : attrs->announceList) {
1002
 
    for(auto uriIter = elem.begin(),
1003
 
          eoi2 = elem.end(); uriIter != eoi2; ++uriIter) {
 
1002
    for(auto& e: elem) {
1004
1003
      uri += "&tr=";
1005
 
      uri += util::percentEncode(*uriIter);
 
1004
      uri += util::percentEncode(e);
1006
1005
    }
1007
1006
  }
1008
1007
  return uri;