1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-01-11 18:24:43 +02:00

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

This commit is contained in:
Laurent Cozic 2018-01-30 20:24:09 +00:00
parent eb67ac17a0
commit f6b4eb511e

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;