[libsoup/libsoup-3-0] soup-auth-manager: SoupAuthNTLM has no 'host' property
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup/libsoup-3-0] soup-auth-manager: SoupAuthNTLM has no 'host' property
- Date: Thu, 30 Jun 2022 08:29:04 +0000 (UTC)
commit dcf2e885ccb455e0d8a9a40a7b6671930934f759
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 47ce2a2d..66a48972 100644
--- a/libsoup/auth/soup-auth-manager.c
+++ b/libsoup/auth/soup-auth-manager.c
@@ -454,15 +454,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]