aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2024-08-23 11:32:36 +0200
committerChristian Grothoff <christian@grothoff.org>2024-08-23 11:32:36 +0200
commit993fc7022d668f547c619a62c80f2506faaaa787 (patch)
tree4a9bb0cf2c16317d5fd0d3ef675ce591a8fcc793
parent779fbde1053ba0ed1b4f894869018095413dae47 (diff)
fix spa serving
-rw-r--r--src/auditor/taler-auditor-httpd.c12
-rw-r--r--src/auditor/taler-auditor-httpd_spa.c4
2 files changed, 9 insertions, 7 deletions
diff --git a/src/auditor/taler-auditor-httpd.c b/src/auditor/taler-auditor-httpd.c
index 372d3106b..8cbb08193 100644
--- a/src/auditor/taler-auditor-httpd.c
+++ b/src/auditor/taler-auditor-httpd.c
@@ -410,7 +410,7 @@ handle_mhd_request (void *cls,
.response_code = MHD_HTTP_OK
},
{
- .url = "/spa/",
+ .url = "/spa",
.method = MHD_HTTP_METHOD_GET,
.handler = &TAH_spa_handler
},
@@ -842,11 +842,11 @@ handle_mhd_request (void *cls,
{
/* const */ struct TAH_RequestHandler *rh = &handlers[i];
- if ( (0 == strcasecmp (url,
- rh->url)) ||
- ( (0 == strncasecmp (url,
- rh->url,
- strlen (rh->url))) &&
+ if ( (0 == strcmp (url,
+ rh->url)) ||
+ ( (0 == strncmp (url,
+ rh->url,
+ strlen (rh->url))) &&
('/' == url[strlen (rh->url)]) ) )
{
url_match = true;
diff --git a/src/auditor/taler-auditor-httpd_spa.c b/src/auditor/taler-auditor-httpd_spa.c
index fa9a5a540..3fed76550 100644
--- a/src/auditor/taler-auditor-httpd_spa.c
+++ b/src/auditor/taler-auditor-httpd_spa.c
@@ -41,8 +41,10 @@ TAH_spa_handler (
size_t *upload_data_size,
const char *const args[])
{
- const char *path = args[0];
+ const char *path = args[1];
+ GNUNET_assert (0 == strcmp (args[0],
+ "spa"));
if (NULL == path)
path = "index.html";
return TALER_MHD_spa_handler (spa,