mirror of
https://github.com/aria2/aria2.git
synced 2025-04-05 21:47:37 +03:00
2009-12-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Fixed the bug that query parameter in magnet URI is not decoded. * src/magnet.cc * test/MagnetTest.cc
This commit is contained in:
parent
58bb1fa266
commit
8cd1d845f2
3 changed files with 10 additions and 3 deletions
|
@ -24,7 +24,7 @@ void MagnetTest::testParse()
|
|||
{
|
||||
BDE r = parse
|
||||
("magnet:?xt=urn:btih:248d0a1cd08284299de78d5c1ed359bb46717d8c&dn=aria2"
|
||||
"&tr=http://tracker1&tr=http://tracker2");
|
||||
"&tr=http%3A%2F%2Ftracker1&tr=http://tracker2");
|
||||
CPPUNIT_ASSERT_EQUAL
|
||||
(std::string("urn:btih:248d0a1cd08284299de78d5c1ed359bb46717d8c"),
|
||||
r["xt"][0].s());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue