Merge pull request #3886 from jitsi/invitation-post-application-json
invite post to use application/JSON
This commit is contained in:
commit
e144c2fb3e
|
@ -274,17 +274,19 @@ export function invitePeopleAndChatRooms( // eslint-disable-line max-params
|
||||||
return Promise.resolve();
|
return Promise.resolve();
|
||||||
}
|
}
|
||||||
|
|
||||||
return new Promise((resolve, reject) => {
|
return fetch(
|
||||||
$.post(
|
`${inviteServiceUrl}?token=${jwt}`,
|
||||||
`${inviteServiceUrl}?token=${jwt}`,
|
{
|
||||||
JSON.stringify({
|
body: JSON.stringify({
|
||||||
'invited': inviteItems,
|
'invited': inviteItems,
|
||||||
'url': inviteUrl
|
'url': inviteUrl
|
||||||
}),
|
}),
|
||||||
resolve,
|
method: 'POST',
|
||||||
'json')
|
headers: {
|
||||||
.fail((jqxhr, textStatus, error) => reject(error));
|
'Content-Type': 'application/json'
|
||||||
});
|
}
|
||||||
|
}
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue