gvfs r2220 - in trunk: . daemon



Author: alexl
Date: Mon Feb 16 10:01:19 2009
New Revision: 2220
URL: http://svn.gnome.org/viewvc/gvfs?rev=2220&view=rev

Log:
2009-02-16  Alexander Larsson  <alexl redhat com>

	Bug 529349 â Redirects with username doesn't work

        * daemon/gvfsbackenddav.c: (redirect_handler):
	Copy username and password when redirecting.
	Patch from Mads Chr. Olesen




Modified:
   trunk/ChangeLog
   trunk/daemon/gvfsbackenddav.c

Modified: trunk/daemon/gvfsbackenddav.c
==============================================================================
--- trunk/daemon/gvfsbackenddav.c	(original)
+++ trunk/daemon/gvfsbackenddav.c	Mon Feb 16 10:01:19 2009
@@ -308,6 +308,10 @@
 
    old_uri = soup_message_get_uri (msg);
 
+   /* copy over username and password to new_uri */
+   soup_uri_set_user(new_uri, old_uri->user);
+   soup_uri_set_password(new_uri, old_uri->password);
+
    /* Check if this is a trailing slash redirect (i.e. /a/b to /a/b/),
     * redirect it right away
     */



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