commit e80e3f28fe48390212ec5607648eaadc1fb1d5ea
parent 9f57aa1cc59cce943837bccee046e02f58730675
Author: Sebastian <sebasjm@gmail.com>
Date: Mon, 31 Oct 2022 15:16:52 -0300
dev-experiment should call method directly
Diffstat:
1 file changed, 4 insertions(+), 9 deletions(-)
diff --git a/packages/taler-wallet-core/src/dev-experiments.ts b/packages/taler-wallet-core/src/dev-experiments.ts
@@ -129,10 +129,8 @@ export class DevExperimentHttpLib implements HttpRequestLibrary {
url: string,
opt?: HttpRequestOptions | undefined,
): Promise<HttpResponse> {
- return this.fetch(url, {
- method: "GET",
- ...opt,
- });
+ logger.info(`devexperiment httplib ${url}`);
+ return this.underlyingLib.get(url, opt);
}
postJson(
@@ -140,11 +138,8 @@ export class DevExperimentHttpLib implements HttpRequestLibrary {
body: any,
opt?: HttpRequestOptions | undefined,
): Promise<HttpResponse> {
- return this.fetch(url, {
- method: "POST",
- body,
- ...opt,
- });
+ logger.info(`devexperiment httplib ${url}`);
+ return this.underlyingLib.postJson(url, body, opt);
}
fetch(