[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] branch master updated: fix WebEx Content-Type, after
From: |
gnunet |
Subject: |
[taler-wallet-core] branch master updated: fix WebEx Content-Type, after Sebastian suggestion |
Date: |
Sat, 23 Apr 2022 17:44:53 +0200 |
This is an automated email from the git hooks/post-receive script.
ms pushed a commit to branch master
in repository wallet-core.
The following commit(s) were added to refs/heads/master by this push:
new 0d81c227 fix WebEx Content-Type, after Sebastian suggestion
0d81c227 is described below
commit 0d81c2270882816b4ab1f945f91a25b815f595a0
Author: ms <ms@taler.net>
AuthorDate: Sat Apr 23 17:44:29 2022 +0200
fix WebEx Content-Type, after Sebastian suggestion
---
packages/taler-wallet-webextension/src/browserHttpLib.ts | 1 +
packages/taler-wallet-webextension/src/serviceWorkerHttpLib.ts | 3 +++
2 files changed, 4 insertions(+)
diff --git a/packages/taler-wallet-webextension/src/browserHttpLib.ts
b/packages/taler-wallet-webextension/src/browserHttpLib.ts
index 537d4e75..93d4939c 100644
--- a/packages/taler-wallet-webextension/src/browserHttpLib.ts
+++ b/packages/taler-wallet-webextension/src/browserHttpLib.ts
@@ -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,
});
diff --git a/packages/taler-wallet-webextension/src/serviceWorkerHttpLib.ts
b/packages/taler-wallet-webextension/src/serviceWorkerHttpLib.ts
index 4dee28a6..d07cb564 100644
--- a/packages/taler-wallet-webextension/src/serviceWorkerHttpLib.ts
+++ b/packages/taler-wallet-webextension/src/serviceWorkerHttpLib.ts
@@ -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,
});
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-wallet-core] branch master updated: fix WebEx Content-Type, after Sebastian suggestion,
gnunet <=