diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2008-09-25 14:48:38 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2008-09-25 14:48:38 +0000 |
| commit | 789e1926cb5f07ce5a82c8d651dbd5a510759c8d (patch) | |
| tree | 66ad59cd7be9c87fcab59c3eac5a43a4baa129dd /test/RequestTest.cc | |
| parent | 92d702fa5349c722c6b59256bafe552c8b5cd8a1 (diff) | |
2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Now colon is required for username and password in FTP URL,
like:
ftp://username:password@host.
If colon is not there, aria2 don't parse it as a username. For
example,
aria2 don't retrieve username from ftp://username@host.
This fix was made in order to login FTP server via
non-transparent ftp
proxy.
* src/Request.cc
* test/RequestTest.cc
Diffstat (limited to 'test/RequestTest.cc')
| -rw-r--r-- | test/RequestTest.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/RequestTest.cc b/test/RequestTest.cc index 807ec821..24b597ef 100644 --- a/test/RequestTest.cc +++ b/test/RequestTest.cc @@ -402,7 +402,8 @@ void RequestTest::testSetUrl_username() CPPUNIT_ASSERT_EQUAL(std::string("localhost"), req.getHost()); CPPUNIT_ASSERT_EQUAL(std::string("/download"), req.getDir()); CPPUNIT_ASSERT_EQUAL(std::string("aria2-1.0.0.tar.bz2"), req.getFile()); - CPPUNIT_ASSERT_EQUAL(std::string("aria2user"), req.getUsername()); + // No ":" is foundin 'aria2user', so username and password is left blank. + CPPUNIT_ASSERT_EQUAL(std::string(""), req.getUsername()); CPPUNIT_ASSERT_EQUAL(std::string(""), req.getPassword()); } |
