diff options
author | Christian Grothoff <christian@grothoff.org> | 2023-09-17 12:57:08 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2023-09-17 12:57:08 +0200 |
commit | 555cbca862f3c56bfd7a2d6c785a05a511b0fd54 (patch) | |
tree | f37738a6ef4e2fc78cfd96e47c04ad2232c2e196 /src/exchange/taler-exchange-httpd_coins_get.c | |
parent | 9ae46f367e606f9b3866b361459e05a71be9f310 (diff) | |
download | exchange-555cbca862f3c56bfd7a2d6c785a05a511b0fd54.tar.gz exchange-555cbca862f3c56bfd7a2d6c785a05a511b0fd54.tar.bz2 exchange-555cbca862f3c56bfd7a2d6c785a05a511b0fd54.zip |
add new GET /coins/-pub handler
Diffstat (limited to 'src/exchange/taler-exchange-httpd_coins_get.c')
-rw-r--r-- | src/exchange/taler-exchange-httpd_coins_get.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/exchange/taler-exchange-httpd_coins_get.c b/src/exchange/taler-exchange-httpd_coins_get.c index f7f0409c8..9f61b38f6 100644 --- a/src/exchange/taler-exchange-httpd_coins_get.c +++ b/src/exchange/taler-exchange-httpd_coins_get.c @@ -41,6 +41,10 @@ add_response_headers (void *cls, { (void) cls; TALER_MHD_add_global_headers (response); + GNUNET_break (MHD_YES == + MHD_add_response_header (response, + MHD_HTTP_HEADER_CACHE_CONTROL, + "no-cache, public")); } @@ -62,7 +66,7 @@ TEH_handler_coins_get (struct TEH_RequestContext *rc, unsigned long long ev; if (1 != sscanf (etags, - "%llu%c", + "\"%llu\"%c", &ev, &dummy)) { @@ -112,7 +116,7 @@ TEH_handler_coins_get (struct TEH_RequestContext *rc, GNUNET_snprintf (etagp, sizeof (etagp), - "%llu", + "\"%llu\"", (unsigned long long) etag); history = TEH_RESPONSE_compile_transaction_history (coin_pub, tl); |