log failures by MHD_add_response_header
This commit is contained in:
parent
6a1649f62f
commit
fc95131ddf
@ -175,9 +175,10 @@ TEH_RESPONSE_reply_json (struct MHD_Connection *connection,
|
|||||||
return MHD_NO;
|
return MHD_NO;
|
||||||
}
|
}
|
||||||
TEH_RESPONSE_add_global_headers (resp);
|
TEH_RESPONSE_add_global_headers (resp);
|
||||||
(void) MHD_add_response_header (resp,
|
GNUNET_break (MHD_YES ==
|
||||||
|
MHD_add_response_header (resp,
|
||||||
MHD_HTTP_HEADER_CONTENT_TYPE,
|
MHD_HTTP_HEADER_CONTENT_TYPE,
|
||||||
"application/json");
|
"application/json"));
|
||||||
if (MHD_YES == comp)
|
if (MHD_YES == comp)
|
||||||
{
|
{
|
||||||
/* Need to indicate to client that body is compressed */
|
/* Need to indicate to client that body is compressed */
|
||||||
|
Loading…
Reference in New Issue
Block a user