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:
Tatsuhiro Tsujikawa 2009-12-07 13:01:25 +00:00
parent 58bb1fa266
commit 8cd1d845f2
3 changed files with 10 additions and 3 deletions

View file

@ -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());