aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/exchange/taler-exchange-httpd_coins_get.c8
-rw-r--r--src/exchange/taler-exchange-httpd_responses.c2
-rw-r--r--src/include/taler_exchange_service.h5
3 files changed, 11 insertions, 4 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);
diff --git a/src/exchange/taler-exchange-httpd_responses.c b/src/exchange/taler-exchange-httpd_responses.c
index 5ae232c36..13c654e60 100644
--- a/src/exchange/taler-exchange-httpd_responses.c
+++ b/src/exchange/taler-exchange-httpd_responses.c
@@ -698,8 +698,10 @@ TEH_RESPONSE_reply_coin_insufficient_funds (
TALER_JSON_pack_ec (ec),
GNUNET_JSON_pack_data_auto ("coin_pub",
coin_pub),
+ // FIXME: to be kept only for some of the error types!
GNUNET_JSON_pack_data_auto ("h_denom_pub",
h_denom_pub),
+ // FIXME: to be removed!
GNUNET_JSON_pack_array_steal ("history",
history));
}
diff --git a/src/include/taler_exchange_service.h b/src/include/taler_exchange_service.h
index 31f41e178..730451d12 100644
--- a/src/include/taler_exchange_service.h
+++ b/src/include/taler_exchange_service.h
@@ -1171,7 +1171,8 @@ struct TALER_EXCHANGE_BatchDepositResult
*/
struct
{
- /* TODO: returning full details is not implemented */
+ /* FIXME: returning full details is not implemented */
+ // Should have 'coin_pub' here!
} conflict;
} details;
@@ -1407,7 +1408,7 @@ struct TALER_EXCHANGE_CsRMeltResponse
*/
struct
{
- /* TODO: returning full details is not implemented */
+ /* FIXME: returning full details is not implemented */
} gone;
} details;