diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-06-04 00:08:22 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-06-04 00:08:22 +0200 |
commit | fc95131ddfe49cacda2b42eaf619a612bd521ca3 (patch) | |
tree | c332b40ddbf322793eaae87d45b37492339203ae /src | |
parent | 6a1649f62ff9d8f49694fd34239fb1d62e6dc654 (diff) | |
download | exchange-fc95131ddfe49cacda2b42eaf619a612bd521ca3.tar.xz |
log failures by MHD_add_response_header
Diffstat (limited to 'src')
-rw-r--r-- | src/exchange/taler-exchange-httpd_responses.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/exchange/taler-exchange-httpd_responses.c b/src/exchange/taler-exchange-httpd_responses.c index 21394337d..234a0107b 100644 --- a/src/exchange/taler-exchange-httpd_responses.c +++ b/src/exchange/taler-exchange-httpd_responses.c @@ -175,16 +175,17 @@ TEH_RESPONSE_reply_json (struct MHD_Connection *connection, return MHD_NO; } TEH_RESPONSE_add_global_headers (resp); - (void) MHD_add_response_header (resp, - MHD_HTTP_HEADER_CONTENT_TYPE, - "application/json"); + GNUNET_break (MHD_YES == + MHD_add_response_header (resp, + MHD_HTTP_HEADER_CONTENT_TYPE, + "application/json")); if (MHD_YES == comp) { /* Need to indicate to client that body is compressed */ if (MHD_NO == - MHD_add_response_header (resp, - MHD_HTTP_HEADER_CONTENT_ENCODING, - "deflate")) + MHD_add_response_header (resp, + MHD_HTTP_HEADER_CONTENT_ENCODING, + "deflate")) { GNUNET_break (0); MHD_destroy_response (resp); |