diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-05-01 00:45:41 -0300 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2017-05-01 00:45:41 -0300 |
commit | 80a5e0a735c76a031dda0dade59c2076154b5267 (patch) | |
tree | 372060878da7ce862475e05f5b623861db24d64f /core/js/files | |
parent | 4518f6dc642e75f2aee386fc39f5e748859bda5c (diff) | |
download | nextcloud-server-80a5e0a735c76a031dda0dade59c2076154b5267.tar.gz nextcloud-server-80a5e0a735c76a031dda0dade59c2076154b5267.zip |
Use dot notation for array access - JSLint recommendation
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'core/js/files')
-rw-r--r-- | core/js/files/client.js | 2 | ||||
-rw-r--r-- | core/js/files/iedavclient.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/core/js/files/client.js b/core/js/files/client.js index e8cf5b9bdb4..da8a1205e4b 100644 --- a/core/js/files/client.js +++ b/core/js/files/client.js @@ -725,7 +725,7 @@ }; if (!allowOverwrite) { - headers['Overwrite'] = 'F'; + headers.Overwrite = 'F'; } this._client.request( diff --git a/core/js/files/iedavclient.js b/core/js/files/iedavclient.js index a0185fb3bec..4e2c17abc55 100644 --- a/core/js/files/iedavclient.js +++ b/core/js/files/iedavclient.js @@ -32,7 +32,7 @@ headers = headers || {}; if (this.userName) { - headers['Authorization'] = 'Basic ' + btoa(this.userName + ':' + this.password); + headers.Authorization = 'Basic ' + btoa(this.userName + ':' + this.password); // xhr.open(method, this.resolveUrl(url), true, this.userName, this.password); } xhr.open(method, this.resolveUrl(url), true); |