gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-exchange] branch master updated: fix spa serving


From: gnunet
Subject: [taler-exchange] branch master updated: fix spa serving
Date: Fri, 23 Aug 2024 11:32:39 +0200

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository exchange.

The following commit(s) were added to refs/heads/master by this push:
     new 993fc7022 fix spa serving
993fc7022 is described below

commit 993fc7022d668f547c619a62c80f2506faaaa787
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Fri Aug 23 11:32:36 2024 +0200

    fix spa serving
---
 src/auditor/taler-auditor-httpd.c     | 12 ++++++------
 src/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
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,

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]