From 07df4c16a75f2aa912cc263d9a72ecce0ea48d86 Mon Sep 17 00:00:00 2001
From: "Marc H. Thoben" <mthoben@mpipz.mpg.de>
Date: Mon, 1 Feb 2016 15:50:22 +0100
Subject: [PATCH 3/3] Make uploading of contacts work with Zimbra.

* According to bug reports (#84246) Zimbra <8.7beta1 required
* "If-None-Match" header when posting CardDAV requests.
---
 chrome/content/inverse-library/sogoWebDAV.js | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/chrome/content/inverse-library/sogoWebDAV.js b/chrome/content/inverse-library/sogoWebDAV.js
index d5725ac..5a1bf64 100644
--- a/chrome/content/inverse-library/sogoWebDAV.js
+++ b/chrome/content/inverse-library/sogoWebDAV.js
@@ -342,14 +342,16 @@ sogoWebDAV.prototype = {
                         dump("NOTICE: uploading modified vcard without etag\n");
 	                this._sendHTTPRequest(operation,
                                               parameters.data,
-                                              { "content-type": parameters.contentType });
+                                              { "content-type": parameters.contentType,
+                                                "If-None-Match": "*" });
                     }
                 }
 	    }
 	    else {
 	        this._sendHTTPRequest(operation,
                                       parameters.data,
-                                      { "content-type": parameters.contentType });
+                                      { "content-type": parameters.contentType,
+                                        "If-None-Match": "*" });
 	    }
         }
         else if (operation == "PROPFIND") {
-- 
2.6.2

