From 2f945b2aebf3378496c8be3ef48a16253dde3358 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 12 Aug 2021 21:01:40 +0200 Subject: merchant test cases --- packages/taler-wallet-core/src/headless/NodeHttpLib.ts | 3 +++ 1 file changed, 3 insertions(+) (limited to 'packages/taler-wallet-core/src/headless') diff --git a/packages/taler-wallet-core/src/headless/NodeHttpLib.ts b/packages/taler-wallet-core/src/headless/NodeHttpLib.ts index 1186ea4d6..9655d363f 100644 --- a/packages/taler-wallet-core/src/headless/NodeHttpLib.ts +++ b/packages/taler-wallet-core/src/headless/NodeHttpLib.ts @@ -52,6 +52,8 @@ export class NodeHttpLib implements HttpRequestLibrary { const method = opt?.method ?? "GET"; let body = opt?.body; + logger.trace(`Requesting ${method} ${url}`); + const parsedUrl = new URL(url); if (this.throttlingEnabled && this.throttle.applyThrottle(url)) { throw OperationFailedError.fromCode( @@ -79,6 +81,7 @@ export class NodeHttpLib implements HttpRequestLibrary { transformResponse: (x) => x, data: body, timeout, + maxRedirects: 0, }); } catch (e) { throw OperationFailedError.fromCode( -- cgit v1.2.3