From a6a1fa9fded4f2443479a3ee2a9c7f0c2fa411cd Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 17 May 2022 14:31:37 +0200 Subject: [PATCH] keep ETag around --- src/exchange/taler-exchange-httpd_keys.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/exchange/taler-exchange-httpd_keys.c b/src/exchange/taler-exchange-httpd_keys.c index a1de10cfd..5a6a506e6 100644 --- a/src/exchange/taler-exchange-httpd_keys.c +++ b/src/exchange/taler-exchange-httpd_keys.c @@ -243,6 +243,11 @@ struct KeysResponseData */ struct MHD_Response *response_uncompressed; + /** + * ETag for these responses. + */ + char *etag; + /** * Cherry-picking timestamp the client must have set for this * response to be valid. 0 if this is the "full" response. @@ -632,6 +637,7 @@ clear_response_cache (struct TEH_KeyStateHandle *ksh) MHD_destroy_response (krd->response_compressed); MHD_destroy_response (krd->response_uncompressed); + GNUNET_free (krd->etag); } GNUNET_array_grow (ksh->krd_array, ksh->krd_array_length, @@ -1980,6 +1986,7 @@ create_krd (struct TEH_KeyStateHandle *ksh, MHD_add_response_header (krd.response_compressed, MHD_HTTP_HEADER_ETAG, etag)); + krd.etag = GNUNET_strdup (etag); } krd.cherry_pick_date = last_cpd; GNUNET_array_append (ksh->krd_array,