From 47eca3a518bc4b9adeeacfdd816df004df0a5933 Mon Sep 17 00:00:00 2001 From: Joe Shaw Date: Sat, 20 Dec 2003 17:54:59 +0000 Subject: [PATCH] If const_path is NULL un the non-proxy case, then use the root ("/"). 2003-12-20 Joe Shaw * libsoup/soup-session.c (lookup_auth): If const_path is NULL un the non-proxy case, then use the root ("/"). --- ChangeLog | 5 +++++ libsoup/soup-session.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index 9e91986..eb4fd09 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2003-12-20 Joe Shaw + + * libsoup/soup-session.c (lookup_auth): If const_path is NULL un + the non-proxy case, then use the root ("/"). + 2003-12-19 Dan Winship * libsoup/soup-message-filter.c: New. An interface for objects diff --git a/libsoup/soup-session.c b/libsoup/soup-session.c index 6922740..2906ca5 100644 --- a/libsoup/soup-session.c +++ b/libsoup/soup-session.c @@ -506,6 +506,9 @@ lookup_auth (SoupSession *session, SoupMessage *msg, gboolean proxy) } else { host = get_host_for_message (session, msg); const_path = soup_message_get_uri (msg)->path; + + if (!const_path) + const_path = "/"; } g_return_val_if_fail (host != NULL, NULL); -- 2.7.4