From 6ba1fe75689b394d39488b691b225e4269110b61 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 24 Oct 2013 22:33:55 +0200 Subject: UriUtil: support ftp:// URLs in uri_remove_auth() --- test/test_util.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test') 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/")); } }; -- cgit v1.2.3