From 6f579eb833be396b56903ff7252c3023ef46a92d Mon Sep 17 00:00:00 2001 From: Marcello Stanisci Date: Tue, 12 Jun 2018 19:16:43 +0200 Subject: From payto:// to base url. The conversion prepends http// or https:// depending on the port given beside the hostname. If port is 433, then prepends https://, otherwise prepends http://. For now, the conversion was only necessary at the /history bank lib. --- src/bank-lib/test_bank_interpreter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/bank-lib/test_bank_interpreter.c') diff --git a/src/bank-lib/test_bank_interpreter.c b/src/bank-lib/test_bank_interpreter.c index e503bd8d..fe6b4e1a 100644 --- a/src/bank-lib/test_bank_interpreter.c +++ b/src/bank-lib/test_bank_interpreter.c @@ -328,7 +328,7 @@ build_history (struct InterpreterState *is, h[total].direction |= TALER_BANK_DIRECTION_CANCEL; GNUNET_asprintf (&h[total].details.account_url, "payto://x-taler-bank/%s/%llu", - "http://localhost:8080", + "localhost:8080", (unsigned long long) pos->details.admin_add_incoming.debit_account_no); } if ( (0 != (cmd->details.history.direction & TALER_BANK_DIRECTION_DEBIT)) && @@ -340,7 +340,7 @@ build_history (struct InterpreterState *is, h[total].direction |= TALER_BANK_DIRECTION_CANCEL; GNUNET_asprintf (&h[total].details.account_url, "payto://x-taler-bank/%s/%llu", - "http://localhost:8080", + "localhost:8080", (unsigned long long) pos->details.admin_add_incoming.credit_account_no); } if ( ( (0 != (cmd->details.history.direction & TALER_BANK_DIRECTION_CREDIT)) && -- cgit v1.2.3