diff --git a/ReactNativeClient/lib/WebDavApi.js b/ReactNativeClient/lib/WebDavApi.js index 5752aef75..1983fada6 100644 --- a/ReactNativeClient/lib/WebDavApi.js +++ b/ReactNativeClient/lib/WebDavApi.js @@ -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;