gnunet-svn
[Top][All Lists]
Advanced

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

[taler-merchant] branch master updated: fix 404 issue in taler-harness r


From: gnunet
Subject: [taler-merchant] branch master updated: fix 404 issue in taler-harness run-integrationtests merchant-instances-urls
Date: Tue, 06 Feb 2024 09:57:20 +0100

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

grothoff pushed a commit to branch master
in repository merchant.

The following commit(s) were added to refs/heads/master by this push:
     new 765fa0cb fix 404 issue in taler-harness run-integrationtests 
merchant-instances-urls
765fa0cb is described below

commit 765fa0cb91c202060010aebb0904630d780f1849
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Tue Feb 6 09:57:06 2024 +0100

    fix 404 issue in taler-harness run-integrationtests merchant-instances-urls
---
 src/backend/taler-merchant-httpd.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/src/backend/taler-merchant-httpd.c 
b/src/backend/taler-merchant-httpd.c
index f1668389..608a00a6 100644
--- a/src/backend/taler-merchant-httpd.c
+++ b/src/backend/taler-merchant-httpd.c
@@ -1349,10 +1349,22 @@ url_handler (void *cls,
   };
   static struct TMH_RequestHandler public_handlers[] = {
     {
+      /* for "default" instance, it does not even
+         have to exist before we give the WebUI */
       .url_prefix = "/",
       .method = MHD_HTTP_METHOD_GET,
       .mime_type = "text/html",
       .skip_instance = true,
+      .default_only = true,
+      .handler = &spa_redirect,
+      .response_code = MHD_HTTP_FOUND
+    },
+    {
+      /* for "normal" instance,s they must exist
+         before we give the WebUI */
+      .url_prefix = "/",
+      .method = MHD_HTTP_METHOD_GET,
+      .mime_type = "text/html",
       .handler = &spa_redirect,
       .response_code = MHD_HTTP_FOUND
     },

-- 
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]