gvfs r2219 - in trunk: . daemon
- From: alexl svn gnome org
- To: svn-commits-list gnome org
- Subject: gvfs r2219 - in trunk: . daemon
- Date: Mon, 16 Feb 2009 09:53:42 +0000 (UTC)
Author: alexl
Date: Mon Feb 16 09:53:42 2009
New Revision: 2219
URL: http://svn.gnome.org/viewvc/gvfs?rev=2219&view=rev
Log:
2009-02-16 Alexander Larsson <alexl redhat com>
Bug 566452 â Error when creating folder on webdav share
* daemon/gvfsbackenddav.c:
(redirect_handler):
Don't intercept "201 Created" return as a redirection
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 09:53:42 2009
@@ -294,6 +294,9 @@
if (new_loc == NULL)
return;
+ if (!SOUP_STATUS_IS_REDIRECTION(status))
+ return;
+
new_uri = soup_uri_new_with_base (soup_message_get_uri (msg), new_loc);
if (new_uri == NULL)
{
@@ -358,15 +361,13 @@
#endif
/* ELSE:
*
- * Three possibilities:
+ * Two possibilities:
*
- * 1) This was a non-3xx response that happened to
- * have a "Location" header
- * 2) It's a non-redirecty 3xx response (300, 304,
+ * 1) It's a non-redirecty 3xx response (300, 304,
* 305, 306)
- * 3) It's some newly-defined 3xx response (308+)
+ * 2) It's some newly-defined 3xx response (308+)
*
- * We ignore all of these cases. In the first two,
+ * We ignore both of these cases. In the first,
* redirecting would be explicitly wrong, and in the
* last case, we have no clue if the 3xx response is
* supposed to be redirecty or non-redirecty. Plus,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]