summaryrefslogtreecommitdiffstats
path: root/core/vendor
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2016-02-16 17:28:24 +0100
committerVincent Petry <pvince81@owncloud.com>2016-02-16 17:37:12 +0100
commit273fb758247fd8f3c6a54fec1f773d2a0cd5ff20 (patch)
tree627ffb8435c65165040bc5d5d06c9fdaf929ad61 /core/vendor
parent6c0e9211e93abfe48d187b91f9d2e9c30566aebc (diff)
downloadnextcloud-server-273fb758247fd8f3c6a54fec1f773d2a0cd5ff20.tar.gz
nextcloud-server-273fb758247fd8f3c6a54fec1f773d2a0cd5ff20.zip
Update davclient library for propfind headers
Diffstat (limited to 'core/vendor')
-rw-r--r--core/vendor/davclient.js/lib/client.js12
1 files changed, 7 insertions, 5 deletions
diff --git a/core/vendor/davclient.js/lib/client.js b/core/vendor/davclient.js/lib/client.js
index d3d0a7062c0..deb0e1ee964 100644
--- a/core/vendor/davclient.js/lib/client.js
+++ b/core/vendor/davclient.js/lib/client.js
@@ -40,18 +40,19 @@ dav.Client.prototype = {
*
* @param {string} url Url to do the propfind request on
* @param {Array} properties List of properties to retrieve.
+ * @param {Object} [headers] headers
* @return {Promise}
*/
- propFind : function(url, properties, depth) {
+ propFind : function(url, properties, depth, headers) {
if(typeof depth == "undefined") {
depth = 0;
}
- var headers = {
- Depth : depth,
- 'Content-Type' : 'application/xml; charset=utf-8'
- };
+ headers = headers || {};
+
+ headers['Depth'] = depth;
+ headers['Content-Type'] = 'application/xml; charset=utf-8';
var body =
'<?xml version="1.0"?>\n' +
@@ -103,6 +104,7 @@ dav.Client.prototype = {
*
* @param {string} url Url to do the proppatch request on
* @param {Array} properties List of properties to store.
+ * @param {Object} [headers] headers
* @return {Promise}
*/
propPatch : function(url, properties, headers) {