[evolution-ews] Handle absence of ETag
- From: David Woodhouse <dwmw2 src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-ews] Handle absence of ETag
- Date: Thu, 2 May 2013 19:55:23 +0000 (UTC)
commit 8081eaca990da510a69bc3525fbac39afb26170a
Author: David Woodhouse <David Woodhouse intel com>
Date: Thu May 2 20:55:04 2013 +0100
Handle absence of ETag
src/addressbook/e-book-backend-ews.c | 2 +-
src/server/e-ews-connection.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/addressbook/e-book-backend-ews.c b/src/addressbook/e-book-backend-ews.c
index c6796bd..c22d6bf 100644
--- a/src/addressbook/e-book-backend-ews.c
+++ b/src/addressbook/e-book-backend-ews.c
@@ -2297,7 +2297,7 @@ ebews_start_gal_sync (gpointer data)
if (!ret)
goto exit;
- e_book_backend_sqlitedb_set_key_value (priv->summary, priv->folder_id, "etag", etag, NULL);
+ e_book_backend_sqlitedb_set_key_value (priv->summary, priv->folder_id, "etag", etag?:"",
NULL);
seq = g_strdup_printf ("%"G_GUINT32_FORMAT, full->seq);
ret = e_book_backend_sqlitedb_set_key_value (priv->summary, priv->folder_id, "seq", seq,
&error);
diff --git a/src/server/e-ews-connection.c b/src/server/e-ews-connection.c
index f1a46e9..23a4954 100644
--- a/src/server/e-ews-connection.c
+++ b/src/server/e-ews-connection.c
@@ -2804,7 +2804,7 @@ e_ews_connection_get_oal_detail (EEwsConnection *cnc,
return;
}
- if (etag)
+ if (etag && *etag)
soup_message_headers_append (soup_message->request_headers,
"If-None-Match", etag);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]