fix WebEx Content-Type, after Sebastian suggestion
This commit is contained in:
parent
c5f484d18a
commit
0d81c22708
@ -178,6 +178,7 @@ export class BrowserHttpLib implements HttpRequestLibrary {
|
|||||||
): Promise<HttpResponse> {
|
): Promise<HttpResponse> {
|
||||||
return this.fetch(url, {
|
return this.fetch(url, {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
|
headers: {"Content-Type": "application/json"},
|
||||||
body: JSON.stringify(body),
|
body: JSON.stringify(body),
|
||||||
...opt,
|
...opt,
|
||||||
});
|
});
|
||||||
|
@ -84,6 +84,8 @@ export class ServiceWorkerHttpLib implements HttpRequestLibrary {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// FIXME: "Content-Type: application/json" goes here,
|
||||||
|
// after Sebastian suggestion.
|
||||||
postJson(
|
postJson(
|
||||||
url: string,
|
url: string,
|
||||||
body: any,
|
body: any,
|
||||||
@ -91,6 +93,7 @@ export class ServiceWorkerHttpLib implements HttpRequestLibrary {
|
|||||||
): Promise<HttpResponse> {
|
): Promise<HttpResponse> {
|
||||||
return this.fetch(url, {
|
return this.fetch(url, {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
|
headers: {"Content-Type": "application/json"},
|
||||||
body: JSON.stringify(body),
|
body: JSON.stringify(body),
|
||||||
...opt,
|
...opt,
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user