prevent overwriting collections when uploading

This commit is contained in:
Unrud 2018-08-18 14:08:02 +02:00
parent 76f7adfed4
commit b8627c33fb

View File

@ -284,6 +284,7 @@ function upload_collection(user, password, collection_href, file, callback) {
callback(request.status + " " + request.statusText); callback(request.status + " " + request.statusText);
} }
}; };
request.setRequestHeader("If-None-Match", "*");
request.send(file); request.send(file);
return request; return request;
} }