From 5b63d2a9a2e088bb7df7c703e9452af7efc88210 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Wed, 8 May 2013 17:50:15 +0200 Subject: merged patch from Daniel Hartwig to fix URI and proxy releated issues --- test/libapt/uri_test.cc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test/libapt/uri_test.cc') diff --git a/test/libapt/uri_test.cc b/test/libapt/uri_test.cc index 99bb3067e..16fde503f 100644 --- a/test/libapt/uri_test.cc +++ b/test/libapt/uri_test.cc @@ -108,5 +108,13 @@ int main() { equals("/debian/", U.Path); } + // Percent-encoding. + { + URI U("ftp://foo:b%40r@example.org"); + equals("foo", U.User); + equals("b@r", U.Password); + equals("ftp://foo:b%40r@example.org", (std::string) U); + } + return 0; } -- cgit v1.2.3-70-g09d2 From c2994dd971919a4337ea00a7aed522ccc82877c1 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Wed, 8 May 2013 18:58:10 +0200 Subject: fix uri test --- test/libapt/uri_test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/libapt/uri_test.cc') diff --git a/test/libapt/uri_test.cc b/test/libapt/uri_test.cc index 16fde503f..8216ade71 100644 --- a/test/libapt/uri_test.cc +++ b/test/libapt/uri_test.cc @@ -113,7 +113,7 @@ int main() { URI U("ftp://foo:b%40r@example.org"); equals("foo", U.User); equals("b@r", U.Password); - equals("ftp://foo:b%40r@example.org", (std::string) U); + equals("ftp://foo:b%40r@example.org/", (std::string) U); } return 0; -- cgit v1.2.3-70-g09d2