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> {
|
||||
return this.fetch(url, {
|
||||
method: "POST",
|
||||
headers: {"Content-Type": "application/json"},
|
||||
body: JSON.stringify(body),
|
||||
...opt,
|
||||
});
|
||||
|
@ -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,
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user