exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit 993fc7022d668f547c619a62c80f2506faaaa787
parent 779fbde1053ba0ed1b4f894869018095413dae47
Author: Christian Grothoff <christian@grothoff.org>
Date:   Fri, 23 Aug 2024 11:32:36 +0200

fix spa serving

Diffstat:
Msrc/auditor/taler-auditor-httpd.c | 12++++++------
Msrc/auditor/taler-auditor-httpd_spa.c | 4+++-
2 files changed, 9 insertions(+), 7 deletions(-)

diff --git 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 @@ -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,