[evolution-data-server/gnome-2-30] Bug #566330 - WebDAV addressbook is too strict about content-type



commit 2870c01e4afa855300e98ca650713a07effdd7af
Author: Petr Tomasek <tomasek etf cuni cz>
Date:   Fri May 7 16:44:34 2010 +0200

    Bug #566330 - WebDAV addressbook is too strict about content-type

 .../backends/webdav/e-book-backend-webdav.c        |   13 +------------
 1 files changed, 1 insertions(+), 12 deletions(-)
---
diff --git a/addressbook/backends/webdav/e-book-backend-webdav.c b/addressbook/backends/webdav/e-book-backend-webdav.c
index e9b081c..438d3a7 100644
--- a/addressbook/backends/webdav/e-book-backend-webdav.c
+++ b/addressbook/backends/webdav/e-book-backend-webdav.c
@@ -109,7 +109,6 @@ static EContact*
 download_contact(EBookBackendWebdav *webdav, const gchar *uri)
 {
 	SoupMessage *message;
-	const gchar  *content_type;
 	const gchar  *etag;
 	EContact    *contact;
 	guint        status;
@@ -124,17 +123,7 @@ download_contact(EBookBackendWebdav *webdav, const gchar *uri)
 		g_object_unref(message);
 		return NULL;
 	}
-	/* TODO: write a real Content-Type parser,
-	 * DECIDE: should we also accept text/plain for webdav servers that
-	 * don't know about text/x-vcard?*/
-	content_type = soup_message_headers_get(message->response_headers,
-						"Content-Type");
-	if (content_type != NULL && strstr(content_type, "text/x-vcard") == NULL) {
-		g_message("'%s' doesn't have mime-type text/x-vcard but '%s'", uri,
-			  content_type);
-		g_object_unref(message);
-		return NULL;
-	}
+
 	if (message->response_body == NULL) {
 		g_message("no response body after requesting '%s'", uri);
 		g_object_unref(message);



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