1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-11-24 08:12:24 +02:00

Specify content-type header for OneDrive to prevent network error

This commit is contained in:
Laurent Cozic 2020-10-15 14:56:49 +01:00
parent bcedf6c7f0
commit 572b647bc0

View File

@ -100,6 +100,9 @@ class OneDriveApi {
const r = await shim.fetch(this.tokenBaseUrl(), {
method: 'POST',
body: body,
headers: {
['Content-Type']: 'application/x-www-form-urlencoded',
},
});
if (!r.ok) {