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:
parent
eb67ac17a0
commit
f6b4eb511e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user