aboutsummaryrefslogtreecommitdiff
path: root/src/backend/taler-merchant-httpd_proposal.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/taler-merchant-httpd_proposal.c')
-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
176 176
177 uri_path = MHD_lookup_connection_value (connection, MHD_HEADER_KIND, 177 uri_path = MHD_lookup_connection_value (connection, MHD_HEADER_KIND,
178 "X-Forwarded-Prefix"); 178 "X-Forwarded-Prefix");
179
180 if (NULL != uri_path) 179 if (NULL != uri_path)
181 TALER_buffer_write_path (&buf, uri_path); 180 {
181 /* Currently the merchant backend is only supported at the root of the path,
182 * this might change in the future.
183 */
184 GNUNET_assert (0);
185 }
186
187 TALER_buffer_write_path (&buf, "public");
182 188
183 if (0 != strcmp (instance_id, "default")) 189 if (0 != strcmp (instance_id, "default"))
184 { 190 {
185 TALER_buffer_write_path (&buf, "/instance/"); 191 TALER_buffer_write_path (&buf, "/instances/");
186 TALER_buffer_write_str (&buf, instance_id); 192 TALER_buffer_write_str (&buf, instance_id);
187 } 193 }
188 TALER_buffer_write_path (&buf, ""); 194 TALER_buffer_write_path (&buf, "");