From 47f24ca27809b4e78ed661e1bf1baadab05aaab6 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Tue, 2 Apr 2002 18:46:35 +0000 Subject: Oops. Fix this. It was working for "Basic" but not "NTLM". * src/libsoup/soup-auth.c (soup_auth_new_from_header_list): Oops. Fix this. It was working for "Basic" but not "NTLM". --- ChangeLog | 5 +++++ libsoup/soup-auth.c | 12 ++++-------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index 559279ee..a4b4ffad 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2002-04-02 Dan Winship + + * src/libsoup/soup-auth.c (soup_auth_new_from_header_list): Oops. + Fix this. It was working for "Basic" but not "NTLM". + 2002-04-01 Dan Winship * src/libsoup/soup-auth.c (soup_auth_new_from_header_list): Make diff --git a/libsoup/soup-auth.c b/libsoup/soup-auth.c index 634425c6..1ffc8b83 100644 --- a/libsoup/soup-auth.c +++ b/libsoup/soup-auth.c @@ -687,13 +687,10 @@ soup_auth_new_from_header_list (const SoupUri *uri, for (iter = known_auth_schemes; iter->scheme; iter++) { if (uri->authmech && - !g_strncasecmp (uri->authmech, - iter->scheme, - strlen (iter->scheme))) { - header = tryheader; - scheme = iter; - goto found; - } + g_strncasecmp (uri->authmech, + iter->scheme, + strlen (iter->scheme)) != 0) + continue; if (!g_strncasecmp (tryheader, iter->scheme, strlen (iter->scheme))) { @@ -712,7 +709,6 @@ soup_auth_new_from_header_list (const SoupUri *uri, if (!scheme) return NULL; - found: auth = scheme->ctor (); if (!auth) return NULL; -- cgit v1.2.1