mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-24 10:27:10 +02:00
Specify content-type header for OneDrive to prevent network error
This commit is contained in:
parent
bcedf6c7f0
commit
572b647bc0
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user