[libsoup/wip/soup-auth-ntlm-no-host-property] soup-auth-manager: SoupAuthNTLM has no 'host' property



commit 73176cdc7d7af9cd465fb0980697a72882880041
Author: Milan Crha <mcrha redhat com>
Date:   Tue May 24 12:37:17 2022 +0200

    soup-auth-manager: SoupAuthNTLM has no 'host' property
    
    Correct a typo in the property name, it should be 'authority' instead.

 libsoup/auth/soup-auth-manager.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/libsoup/auth/soup-auth-manager.c b/libsoup/auth/soup-auth-manager.c
index 89b83bb5..59535015 100644
--- a/libsoup/auth/soup-auth-manager.c
+++ b/libsoup/auth/soup-auth-manager.c
@@ -440,15 +440,18 @@ static gboolean
 make_auto_ntlm_auth (SoupAuthManagerPrivate *priv, SoupAuthHost *host)
 {
        SoupAuth *auth;
+       char *authority;
 
        if (!priv->auto_ntlm)
                return FALSE;
 
+       authority = g_strdup_printf ("%s:%d", g_uri_get_host (host->uri), g_uri_get_port (host->uri));
        auth = g_object_new (SOUP_TYPE_AUTH_NTLM,
-                            "host", g_uri_get_host (host->uri),
+                            "authority", authority,
                             NULL);
        record_auth_for_uri (priv, host->uri, auth, FALSE);
        g_object_unref (auth);
+       g_free (authority);
        return TRUE;
 }
 


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