diff options
| author | Carlos Garcia Campos <cgarcia@igalia.com> | 2020-11-16 14:21:13 +0100 |
|---|---|---|
| committer | Carlos Garcia Campos <cgarcia@igalia.com> | 2020-11-20 11:09:23 +0100 |
| commit | 3fb38248dd90de2eac95e6f24416466105ddd682 (patch) | |
| tree | 9a42878f6e5aa192d714c9e9298cbb79d679e1de /libsoup/auth | |
| parent | 9f262586f4425721721cbbc7d2feae27642b2213 (diff) | |
| download | libsoup-3fb38248dd90de2eac95e6f24416466105ddd682.tar.gz | |
uri-utils: add soup_uri_copy()
It's a generic API to copy a GUri, but updating the given components.
Diffstat (limited to 'libsoup/auth')
| -rw-r--r-- | libsoup/auth/soup-auth-manager.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libsoup/auth/soup-auth-manager.c b/libsoup/auth/soup-auth-manager.c index 3a52aa7c..26be2ead 100644 --- a/libsoup/auth/soup-auth-manager.c +++ b/libsoup/auth/soup-auth-manager.c @@ -554,7 +554,7 @@ authenticate_auth (SoupAuthManager *manager, SoupAuth *auth, */ if (g_uri_get_password (uri) && g_uri_get_user (uri)) { soup_auth_authenticate (auth, g_uri_get_user (uri), g_uri_get_password (uri)); - GUri *new_uri = soup_uri_copy_with_credentials (uri, NULL, NULL); + GUri *new_uri = soup_uri_copy (uri, SOUP_URI_USER, NULL, SOUP_URI_PASSWORD, NULL, SOUP_URI_NONE); soup_message_set_uri (msg, new_uri); // QUESTION: This didn't emit a signal previously g_uri_unref (new_uri); } else if (!soup_auth_is_authenticated (auth) && can_interact) { |
