[libsoup] uri-parsing-test: re-enable uri equality test expecting dot segments to be removed



commit 4c50b4eb713b85ecd50245c76692e6bcec2a2eef
Author: Carlos Garcia Campos <cgarcia igalia com>
Date:   Mon Aug 23 11:22:05 2021 +0200

    uri-parsing-test: re-enable uri equality test expecting dot segments to be removed
    
    GLib now behaves like SoupURI about dot segments removal.

 tests/uri-parsing-test.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tests/uri-parsing-test.c b/tests/uri-parsing-test.c
index 2bf89f60..4c16d7e2 100644
--- a/tests/uri-parsing-test.c
+++ b/tests/uri-parsing-test.c
@@ -8,8 +8,8 @@ static struct {
         gboolean equal;
         GUriFlags flags_one, flags_two;
 } eq_tests[] = {
-        // NOTE: GUri doesn't remove dot segments from absolute URIs
-       // { "example://a/b/c/%7Bfoo%7D", "eXAMPLE://a/./b/../b/%63/%7Bfoo%7D", "628728" },
+       { "example://a/b/c/%7Bfoo%7D", "eXAMPLE://a/./b/../b/%63/%7Bfoo%7D", TRUE,
+          SOUP_HTTP_URI_FLAGS, SOUP_HTTP_URI_FLAGS },
        { "http://example.com";, "http://example.com/";, TRUE,
           SOUP_HTTP_URI_FLAGS, SOUP_HTTP_URI_FLAGS },
        /* From RFC 2616 */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]