gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-wallet-core] 03/05: fix breakage due to URI.js upgrade


From: gnunet
Subject: [taler-wallet-core] 03/05: fix breakage due to URI.js upgrade
Date: Thu, 21 Nov 2019 23:10:02 +0100

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository wallet-core.

commit 61558e00ae6ad9df601a284d99d4806002a35dad
Author: Florian Dold <address@hidden>
AuthorDate: Thu Nov 21 11:52:26 2019 +0100

    fix breakage due to URI.js upgrade
---
 src/helpers.ts | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/helpers.ts b/src/helpers.ts
index a063db16..cfebf394 100644
--- a/src/helpers.ts
+++ b/src/helpers.ts
@@ -44,10 +44,10 @@ export function amountToPretty(amount: AmountJson): string {
  * See http://api.taler.net/wallet.html#general
  */
 export function canonicalizeBaseUrl(url: string) {
-  const x = new URI(url);
-  if (!x.protocol()) {
-    x.protocol("https");
+  if (!url.startsWith("http") && !url.startsWith("https")) {
+    url = "https://"; + url;
   }
+  const x = new URI(url);
   x.path(x.path() + "/").normalizePath();
   x.fragment("");
   x.query();

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]