diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-07-27 13:20:15 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-07-27 13:20:15 +0200 |
commit | c03c8fe2d943347aeaea3b8c723c828b19f1ca4f (patch) | |
tree | c5781c14548bc22882ccd66c2231d83a4973bc84 /src/backend/taler-merchant-httpd_private-post-orders-ID-refund.c | |
parent | 2eaa81fe039f69f31eae74309f229e11c2b006e9 (diff) | |
download | merchant-c03c8fe2d943347aeaea3b8c723c828b19f1ca4f.tar.gz merchant-c03c8fe2d943347aeaea3b8c723c828b19f1ca4f.tar.bz2 merchant-c03c8fe2d943347aeaea3b8c723c828b19f1ca4f.zip |
switch to new URI schema with taler+http:// instead of insecure
Diffstat (limited to 'src/backend/taler-merchant-httpd_private-post-orders-ID-refund.c')
-rw-r--r-- | src/backend/taler-merchant-httpd_private-post-orders-ID-refund.c | 14 |
1 files changed, 6 insertions, 8 deletions
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 344e003e..0e592467 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; } |