summaryrefslogtreecommitdiffstats
path: root/core/js/files
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2016-02-04 15:38:54 +0100
committerVincent Petry <pvince81@owncloud.com>2016-02-04 15:38:54 +0100
commit8782004742db8759e1ad1b5e13acfe17cd14cb93 (patch)
tree641bb36b63d2b9fceb53d96b3a330d9c8bbaa3e1 /core/js/files
parent899444103a30a157a2112ca7389e9b047256b72d (diff)
downloadnextcloud-server-8782004742db8759e1ad1b5e13acfe17cd14cb93.tar.gz
nextcloud-server-8782004742db8759e1ad1b5e13acfe17cd14cb93.zip
Small fixes in Dav files client
Remove double leading slash in path. Add utf-8 in default content type.
Diffstat (limited to 'core/js/files')
-rw-r--r--core/js/files/client.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/js/files/client.js b/core/js/files/client.js
index 3d31f974ff8..b736447d65e 100644
--- a/core/js/files/client.js
+++ b/core/js/files/client.js
@@ -239,7 +239,7 @@
path = path.substr(0, path.length - 1);
}
- path = '/' + decodeURIComponent(path);
+ path = decodeURIComponent(path);
if (response.propStat.length === 1 && response.propStat[0].status !== 200) {
return null;
@@ -505,7 +505,7 @@
var promise = deferred.promise();
options = options || {};
var headers = _.extend({}, this._defaultHeaders);
- var contentType = 'text/plain';
+ var contentType = 'text/plain;charset=utf-8';
if (options.contentType) {
contentType = options.contentType;
}