1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-23 22:36:32 +02:00

All: Fixes #12249: Change default content-type for Webdav connector to application/octet-stream (#13053)

This commit is contained in:
pedr
2025-09-13 10:13:27 -03:00
committed by GitHub
parent e9a9f68568
commit 0795c67354

View File

@@ -350,7 +350,7 @@ class WebDavApi {
// https://github.com/facebook/react-native/issues/30176
if (!headers['Content-Type']) {
if (method === 'PROPFIND') headers['Content-Type'] = 'text/xml';
if (method === 'PUT') headers['Content-Type'] = 'text/plain';
if (method === 'PUT') headers['Content-Type'] = 'application/octet-stream';
}
// React-native has caching enabled by at least on Android (see https://github.com/laurent22/joplin/issues/4706 and the related PR).