Add text responses as json with msg key
This commit is contained in:
parent
f97b149376
commit
1d6e8ff037
18 changed files with 114 additions and 83 deletions
src/handlers
|
@ -84,7 +84,7 @@ handle_http_request(struct mg_connection *nc, struct http_message *hm)
|
|||
|
||||
endpoint_response_t response;
|
||||
|
||||
M_RESPONSE_TEXT_STATIC(LOGGER_NONE, &response, 500, "server did not create a response");
|
||||
M_RESPONSE_MSG(LOGGER_NONE, &response, 500, "server did not create a response");
|
||||
|
||||
if(!endpoint)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue