+Prevent: PROPFIND:1: error: Extra content at the end of the document
authorshort <>
Sat, 25 Oct 2003 08:58:31 +0000 (08:58 +0000)
committershort <>
Sat, 25 Oct 2003 08:58:31 +0000 (08:58 +0000)
 - download.microsoft.com returns GNOME_VFS_ERROR_EOF for PROPFIND

modules/http-method.c

index c731131..abc8a7f 100644 (file)
@@ -2364,6 +2364,13 @@ make_propfind_request (HttpFileHandle **handle_return,
                DEBUG_HTTP (("HTTP server returned an invalid PROPFIND response: %d", (*handle_return)->server_status));
                result = GNOME_VFS_ERROR_NOT_SUPPORTED;
        }
+       /* Some servers (download.microsoft.com) will just close
+        * the connection (EOF) without returning any HTTP status.
+        */
+       if (result == GNOME_VFS_ERROR_EOF) {
+               DEBUG_HTTP (("HTTP server returned an empty PROPFIND response"));
+               result = GNOME_VFS_ERROR_NOT_SUPPORTED;
+       }
        
        if (result == GNOME_VFS_OK) {
                do {