fix WebEx Content-Type, after Sebastian suggestion

This commit is contained in:
ms 2022-04-23 17:44:29 +02:00
parent c5f484d18a
commit 0d81c22708
No known key found for this signature in database
GPG Key ID: 8D526861953F4C0F
2 changed files with 4 additions and 0 deletions

View File

@ -178,6 +178,7 @@ export class BrowserHttpLib implements HttpRequestLibrary {
): Promise<HttpResponse> {
return this.fetch(url, {
method: "POST",
headers: {"Content-Type": "application/json"},
body: JSON.stringify(body),
...opt,
});

View File

@ -84,6 +84,8 @@ export class ServiceWorkerHttpLib implements HttpRequestLibrary {
});
}
// FIXME: "Content-Type: application/json" goes here,
// after Sebastian suggestion.
postJson(
url: string,
body: any,
@ -91,6 +93,7 @@ export class ServiceWorkerHttpLib implements HttpRequestLibrary {
): Promise<HttpResponse> {
return this.fetch(url, {
method: "POST",
headers: {"Content-Type": "application/json"},
body: JSON.stringify(body),
...opt,
});