Add Content-Size header for WebDAV, which is required by some services

pull/194/head^2
Laurent Cozic 2018-01-30 20:24:09 +00:00
parent eb67ac17a0
commit f6b4eb511e
1 changed files with 2 additions and 0 deletions

View File

@ -151,6 +151,8 @@ class WebDavApi {
if (authToken) headers['Authorization'] = 'Basic ' + authToken;
if (typeof body === 'string') headers['Content-length'] = body.length;
const fetchOptions = {};
fetchOptions.headers = headers;
fetchOptions.method = method;