summaryrefslogtreecommitdiff
path: root/src/exchange
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-05-17 14:31:37 +0200
committerChristian Grothoff <christian@grothoff.org>2022-05-17 14:31:52 +0200
commita6a1fa9fded4f2443479a3ee2a9c7f0c2fa411cd (patch)
treec377a104c99170eef27da7d654443520477aabb9 /src/exchange
parent5e06f842dd09f44f94801ec463717e370531c406 (diff)
downloadexchange-a6a1fa9fded4f2443479a3ee2a9c7f0c2fa411cd.tar.gz
exchange-a6a1fa9fded4f2443479a3ee2a9c7f0c2fa411cd.tar.bz2
exchange-a6a1fa9fded4f2443479a3ee2a9c7f0c2fa411cd.zip
keep ETag around
Diffstat (limited to 'src/exchange')
-rw-r--r--src/exchange/taler-exchange-httpd_keys.c7
1 files changed, 7 insertions, 0 deletions
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
@@ -244,6 +244,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.
* The client's request must include this date or a higher one
@@ -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,