From 9ab851a5a9f951a8d2e7e285489245bee2cd0303 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Fri, 2 Nov 2012 10:54:34 +0000 Subject: Fix join with rel part of " ". Add a few tests. --- test/nsurl.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/nsurl.c') diff --git a/test/nsurl.c b/test/nsurl.c index 20109f8fb..66bc05780 100644 --- a/test/nsurl.c +++ b/test/nsurl.c @@ -136,6 +136,12 @@ static const struct test_pairs join_tests[] = { { "http://", "http:" }, { "http:/", "http:" }, { "http:", "http:" }, + { " ", "http://a/b/c/d;p?q" }, + { " ", "http://a/b/c/d;p?q" }, + { "/", "http://a/" }, + { " / ", "http://a/" }, + { " ? ", "http://a/b/c/d;p?" }, + { " h ", "http://a/b/c/h" }, /* [1] Extra slash beyond rfc3986 5.4.1 example, since we're * testing normalisation in addition to joining */ /* [2] Using the strict parsers option */ -- cgit v1.2.3