diff options
author | Max Kellermann <max@duempel.org> | 2013-10-24 22:33:55 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-02-24 19:59:53 +0100 |
commit | 6ba1fe75689b394d39488b691b225e4269110b61 (patch) | |
tree | 57646abb6f11c5b32f47bf57162f364f3373b125 /test/test_util.cxx | |
parent | bfae92e307aeeb80809b7cc9c44c48e87b595d22 (diff) | |
download | mpd-6ba1fe75689b394d39488b691b225e4269110b61.tar.gz mpd-6ba1fe75689b394d39488b691b225e4269110b61.tar.xz mpd-6ba1fe75689b394d39488b691b225e4269110b61.zip |
UriUtil: support ftp:// URLs in uri_remove_auth()
Diffstat (limited to 'test/test_util.cxx')
-rw-r--r-- | test/test_util.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/test_util.cxx b/test/test_util.cxx index a472391a3..07bcacbe9 100644 --- a/test/test_util.cxx +++ b/test/test_util.cxx @@ -44,6 +44,8 @@ public: uri_remove_auth("http://foo@www.example.com/")); CPPUNIT_ASSERT_EQUAL(std::string(), uri_remove_auth("http://www.example.com/f:oo@bar")); + CPPUNIT_ASSERT_EQUAL(std::string("ftp://ftp.example.com/"), + uri_remove_auth("ftp://foo:bar@ftp.example.com/")); } }; |