You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
1.2 KiB
59 lines
1.2 KiB
18 years ago
|
--- gnome-vfs-2.15.91/modules/http-neon-method.c.redirect 2006-08-30 14:30:23.000000000 -0400
|
||
|
+++ gnome-vfs-2.15.91/modules/http-neon-method.c 2006-08-30 14:30:40.000000000 -0400
|
||
|
@@ -1846,8 +1846,11 @@
|
||
|
|
||
|
result = http_follow_redirect (context);
|
||
|
|
||
|
- if (result == GNOME_VFS_OK)
|
||
|
+ if (result == GNOME_VFS_OK) {
|
||
|
goto propfind_start;
|
||
|
+ } else {
|
||
|
+ return result;
|
||
|
+ }
|
||
|
}
|
||
|
|
||
|
req = ne_propfind_get_request (pfh);
|
||
|
@@ -1896,12 +1899,15 @@
|
||
|
res = ne_request_dispatch (req);
|
||
|
|
||
|
if (res == NE_REDIRECT) {
|
||
|
- result = http_follow_redirect (context);
|
||
|
-
|
||
|
+ ne_request_destroy (req);
|
||
|
+ req = NULL;
|
||
|
+
|
||
|
+ result = http_follow_redirect (context);
|
||
|
+
|
||
|
if (result == GNOME_VFS_OK) {
|
||
|
- ne_request_destroy (req);
|
||
|
- req = NULL;
|
||
|
goto head_start;
|
||
|
+ } else {
|
||
|
+ return result;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@@ -2006,7 +2012,12 @@
|
||
|
if (res == NE_REDIRECT) {
|
||
|
ne_request_destroy (req);
|
||
|
result = http_follow_redirect (hctx);
|
||
|
- goto options_start;
|
||
|
+
|
||
|
+ if (result == GNOME_VFS_OK) {
|
||
|
+ goto options_start;
|
||
|
+ } else {
|
||
|
+ return result;
|
||
|
+ }
|
||
|
}
|
||
|
|
||
|
result = resolve_result (res, req);
|
||
|
@@ -2289,7 +2300,7 @@
|
||
|
|
||
|
if (res == NE_REDIRECT) {
|
||
|
result = http_follow_redirect (hctx);
|
||
|
-
|
||
|
+
|
||
|
if (result == GNOME_VFS_OK)
|
||
|
goto get_start;
|
||
|
}
|