gnunet-svn
[Top][All Lists]
Advanced

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

[taler-merchant] branch master updated: switch to new URI schema with ta


From: gnunet
Subject: [taler-merchant] branch master updated: switch to new URI schema with taler+http:// instead of insecure
Date: Mon, 27 Jul 2020 13:20:17 +0200

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

grothoff pushed a commit to branch master
in repository merchant.

The following commit(s) were added to refs/heads/master by this push:
     new c03c8fe  switch to new URI schema with taler+http:// instead of 
insecure
c03c8fe is described below

commit c03c8fe2d943347aeaea3b8c723c828b19f1ca4f
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Mon Jul 27 13:20:15 2020 +0200

    switch to new URI schema with taler+http:// instead of insecure
---
 src/backend/taler-merchant-httpd_get-orders-ID.c           | 13 +++++--------
 .../taler-merchant-httpd_private-post-orders-ID-refund.c   | 14 ++++++--------
 2 files changed, 11 insertions(+), 16 deletions(-)

diff --git a/src/backend/taler-merchant-httpd_get-orders-ID.c 
b/src/backend/taler-merchant-httpd_get-orders-ID.c
index d569970..64c4f18 100644
--- a/src/backend/taler-merchant-httpd_get-orders-ID.c
+++ b/src/backend/taler-merchant-httpd_get-orders-ID.c
@@ -613,7 +613,6 @@ TMH_make_taler_pay_uri (struct MHD_Connection *con,
   const char *forwarded_host;
   const char *uri_path;
   const char *uri_instance_id;
-  const char *query;
   char *result;
 
   host = MHD_lookup_connection_value (con,
@@ -642,20 +641,18 @@ TMH_make_taler_pay_uri (struct MHD_Connection *con,
     return NULL;
   }
 
-  if (GNUNET_YES == TALER_mhd_is_https (con))
-    query = "";
-  else
-    query = "?insecure=1";
   GNUNET_assert (NULL != order_id);
   GNUNET_assert (0 < GNUNET_asprintf (&result,
-                                      "taler://pay/%s/%s/%s/%s%s%s%s",
+                                      "%s://pay/%s/%s/%s/%s%s%s",
+                                      (GNUNET_YES == TALER_mhd_is_https (con))
+                                      ? "taler"
+                                      : "taler+http",
                                       host,
                                       uri_path,
                                       uri_instance_id,
                                       order_id,
                                       (NULL == session_id) ? "" : "/",
-                                      (NULL == session_id) ? "" : session_id,
-                                      query));
+                                      (NULL == session_id) ? "" : session_id));
   return result;
 }
 
diff --git a/src/backend/taler-merchant-httpd_private-post-orders-ID-refund.c 
b/src/backend/taler-merchant-httpd_private-post-orders-ID-refund.c
index 344e003..0e59246 100644
--- a/src/backend/taler-merchant-httpd_private-post-orders-ID-refund.c
+++ b/src/backend/taler-merchant-httpd_private-post-orders-ID-refund.c
@@ -51,7 +51,6 @@ make_taler_refund_uri (struct MHD_Connection *connection,
   const char *forwarded_host;
   const char *uri_path;
   const char *uri_instance_id;
-  const char *query;
   char *result;
 
   GNUNET_assert (NULL != instance_id);
@@ -80,17 +79,16 @@ make_taler_refund_uri (struct MHD_Connection *connection,
     uri_instance_id = "-";
   else
     uri_instance_id = instance_id;
-  if (GNUNET_YES == TALER_mhd_is_https (connection))
-    query = "";
-  else
-    query = "?insecure=1";
   GNUNET_assert (0 < GNUNET_asprintf (&result,
-                                      "taler://refund/%s/%s/%s/%s%s",
+                                      "%s://refund/%s/%s/%s/%s",
+                                      (GNUNET_YES == TALER_mhd_is_https (
+                                         connection))
+                                      ? "taler"
+                                      : "taler+http",
                                       host,
                                       uri_path,
                                       uri_instance_id,
-                                      order_id,
-                                      query));
+                                      order_id));
   return result;
 }
 

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

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