From: short <> Date: Sat, 25 Oct 2003 08:58:31 +0000 (+0000) Subject: +Prevent: PROPFIND:1: error: Extra content at the end of the document X-Git-Url: http://git.jankratochvil.net/?p=gnome-vfs-httpcaptive.git;a=commitdiff_plain;h=e1899a673581549d35e31a54b3fa6c4d96ec3170 +Prevent: PROPFIND:1: error: Extra content at the end of the document - download.microsoft.com returns GNOME_VFS_ERROR_EOF for PROPFIND --- diff --git a/modules/http-method.c b/modules/http-method.c index c731131..abc8a7f 100644 --- a/modules/http-method.c +++ b/modules/http-method.c @@ -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 {