If const_path is NULL un the non-proxy case, then use the root ("/").
authorJoe Shaw <joe@ximian.com>
Sat, 20 Dec 2003 17:54:59 +0000 (17:54 +0000)
committerJoe Shaw <joeshaw@src.gnome.org>
Sat, 20 Dec 2003 17:54:59 +0000 (17:54 +0000)
2003-12-20  Joe Shaw  <joe@ximian.com>

* libsoup/soup-session.c (lookup_auth): If const_path is NULL un
the non-proxy case, then use the root ("/").

ChangeLog
libsoup/soup-session.c

index 9e91986..eb4fd09 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2003-12-20  Joe Shaw  <joe@ximian.com>
+
+       * 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  <danw@ximian.com>
 
        * libsoup/soup-message-filter.c: New. An interface for objects
index 6922740..2906ca5 100644 (file)
@@ -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);