mirror of https://github.com/laurent22/joplin.git
Add Content-Size header for WebDAV, which is required by some services
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