You've already forked joplin
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:
@@ -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).
|
||||
|
||||
Reference in New Issue
Block a user