From 8782004742db8759e1ad1b5e13acfe17cd14cb93 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Thu, 4 Feb 2016 15:38:54 +0100 Subject: [PATCH] Small fixes in Dav files client Remove double leading slash in path. Add utf-8 in default content type. --- core/js/files/client.js | 4 ++-- 1 file 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; } -- 2.39.5