commit f8411e903f34822168f85a992fe95d7dda418004
parent d09d8282981437e5031e2ef145cd3a2b75ded9e1
Author: Florian Dold <florian.dold@gmail.com>
Date: Fri, 1 Nov 2019 16:55:08 +0100
fix URL generation
Diffstat:
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git 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, "");