From b8627c33fbbfdf45edd2bf275710428758d7255a Mon Sep 17 00:00:00 2001 From: Unrud Date: Sat, 18 Aug 2018 14:08:02 +0200 Subject: [PATCH] prevent overwriting collections when uploading --- radicale/web/fn.js | 1 + 1 file changed, 1 insertion(+) diff --git a/radicale/web/fn.js b/radicale/web/fn.js index 56aa929..d216dd6 100644 --- a/radicale/web/fn.js +++ b/radicale/web/fn.js @@ -284,6 +284,7 @@ function upload_collection(user, password, collection_href, file, callback) { callback(request.status + " " + request.statusText); } }; + request.setRequestHeader("If-None-Match", "*"); request.send(file); return request; }