Merge branch 'master' into release

This commit is contained in:
Dan Brown 2019-09-03 21:49:46 +01:00
commit fdd339f525
No known key found for this signature in database
GPG Key ID: 46D9F943C24A2EF9
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ async function dataRequest(method, url, data = null) {
body: data,
};
if (typeof data === 'object') {
if (typeof data === 'object' && !(data instanceof FormData)) {
options.headers = {'Content-Type': 'application/json'};
options.body = JSON.stringify(data);
}