[libsoup] Remove legacy "*" alias support



commit 1618e3a53539b32b435d7c7a00bb4b84418d6224
Author: Patrick Griffis <pgriffis igalia com>
Date:   Mon Aug 24 14:48:36 2020 -0500

    Remove legacy "*" alias support
    
    This was used by default with the Async/Sync session types that no
    longer exist.

 libsoup/soup-uri.c | 5 +----
 tests/misc-test.c  | 8 --------
 2 files changed, 1 insertion(+), 12 deletions(-)
---
diff --git a/libsoup/soup-uri.c b/libsoup/soup-uri.c
index 1e908c42..fd8dc828 100644
--- a/libsoup/soup-uri.c
+++ b/libsoup/soup-uri.c
@@ -1356,10 +1356,7 @@ soup_uri_is_http (SoupURI *uri, char **aliases)
                        return TRUE;
        }
 
-       if (aliases[0] && !aliases[1] && !strcmp (aliases[0], "*"))
-               return TRUE;
-       else
-               return FALSE;
+       return FALSE;
 }
 
 gboolean
diff --git a/tests/misc-test.c b/tests/misc-test.c
index 1dec6a65..69ba727d 100644
--- a/tests/misc-test.c
+++ b/tests/misc-test.c
@@ -814,14 +814,6 @@ do_aliases_test (void)
 {
        SoupSession *session;
        char *aliases[] = { "foo", NULL };
-        char *all_http_aliases[] = { "*", NULL };
-
-       debug_printf (1, "  Default behavior\n");
-       session = soup_test_session_new (SOUP_TYPE_SESSION,
-                                         SOUP_SESSION_HTTP_ALIASES, all_http_aliases,
-                                         NULL);
-       do_aliases_test_for_session (session, "http");
-       soup_test_session_abort_unref (session);
 
        if (tls_available) {
                debug_printf (1, "  foo-means-https\n");


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