From a0bf83fbb5db026389cc7d203adcff050d5a1b28 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Fri, 5 May 2023 13:20:27 -0300 Subject: URL.protocol return with a colon at the end --- packages/taler-util/src/http-impl.qtart.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packages/taler-util/src/http-impl.qtart.ts') diff --git a/packages/taler-util/src/http-impl.qtart.ts b/packages/taler-util/src/http-impl.qtart.ts index 3a963b35a..3e076e96d 100644 --- a/packages/taler-util/src/http-impl.qtart.ts +++ b/packages/taler-util/src/http-impl.qtart.ts @@ -72,7 +72,7 @@ export class HttpLibImpl implements HttpRequestLibrary { `request to origin ${parsedUrl.origin} was throttled`, ); } - if (!this.allowHttp && parsedUrl.protocol !== "https") { + if (!this.allowHttp && parsedUrl.protocol !== "https:") { throw TalerError.fromDetail( TalerErrorCode.WALLET_NETWORK_ERROR, { -- cgit v1.2.3