summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2019-11-01 16:55:08 +0100
committerFlorian Dold <florian.dold@gmail.com>2019-11-01 16:55:08 +0100
commitf8411e903f34822168f85a992fe95d7dda418004 (patch)
tree81ccbc9dc82f001b8c3fcdeb23715606f22782b7
parentd09d8282981437e5031e2ef145cd3a2b75ded9e1 (diff)
downloadmerchant-f8411e903f34822168f85a992fe95d7dda418004.tar.gz
merchant-f8411e903f34822168f85a992fe95d7dda418004.tar.bz2
merchant-f8411e903f34822168f85a992fe95d7dda418004.zip
fix URL generation
-rw-r--r--src/backend/taler-merchant-httpd_proposal.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/backend/taler-merchant-httpd_proposal.c b/src/backend/taler-merchant-httpd_proposal.c
index 06788f02..89f5b110 100644
--- a/src/backend/taler-merchant-httpd_proposal.c
+++ b/src/backend/taler-merchant-httpd_proposal.c
@@ -176,13 +176,19 @@ make_merchant_base_url (struct MHD_Connection *connection, const
uri_path = MHD_lookup_connection_value (connection, MHD_HEADER_KIND,
"X-Forwarded-Prefix");
-
if (NULL != uri_path)
- TALER_buffer_write_path (&buf, uri_path);
+ {
+ /* Currently the merchant backend is only supported at the root of the path,
+ * this might change in the future.
+ */
+ GNUNET_assert (0);
+ }
+
+ TALER_buffer_write_path (&buf, "public");
if (0 != strcmp (instance_id, "default"))
{
- TALER_buffer_write_path (&buf, "/instance/");
+ TALER_buffer_write_path (&buf, "/instances/");
TALER_buffer_write_str (&buf, instance_id);
}
TALER_buffer_write_path (&buf, "");