[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-merchant] branch master updated: fix cache control for /config: r
From: |
gnunet |
Subject: |
[taler-merchant] branch master updated: fix cache control for /config: rebuild response after it expired |
Date: |
Sun, 21 Apr 2024 10:27:38 +0200 |
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 f2f8e00f fix cache control for /config: rebuild response after it
expired
f2f8e00f is described below
commit f2f8e00fa6fa44a6a5bcf49f4a868292126e1f8a
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sun Apr 21 10:27:30 2024 +0200
fix cache control for /config: rebuild response after it expired
---
src/backend/taler-merchant-httpd_config.c | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/src/backend/taler-merchant-httpd_config.c
b/src/backend/taler-merchant-httpd_config.c
index 3777904f..d1340249 100644
--- a/src/backend/taler-merchant-httpd_config.c
+++ b/src/backend/taler-merchant-httpd_config.c
@@ -42,7 +42,7 @@
* #MERCHANT_PROTOCOL_CURRENT and #MERCHANT_PROTOCOL_AGE in
* merchant_api_config.c!
*/
-#define MERCHANT_PROTOCOL_VERSION "14:0:10"
+#define MERCHANT_PROTOCOL_VERSION "14:1:10"
/**
@@ -82,14 +82,20 @@ MH_handler_config (struct TMH_RequestHandler *rh,
struct TMH_HandlerContext *hc)
{
static struct MHD_Response *response;
+ static struct GNUNET_TIME_Absolute a;
(void) rh;
(void) hc;
+ if ( (GNUNET_TIME_absolute_is_past (a)) &&
+ (NULL != response) )
+ {
+ MHD_destroy_response (response);
+ response = NULL;
+ }
if (NULL == response)
{
json_t *specs = json_object ();
json_t *exchanges = json_array ();
- struct GNUNET_TIME_Absolute a;
struct GNUNET_TIME_Timestamp km;
char dat[128];
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-merchant] branch master updated: fix cache control for /config: rebuild response after it expired,
gnunet <=