From 4d157537c34bdc5576b449d0a632841dc5237aab Mon Sep 17 00:00:00 2001 From: Chip Black Date: Thu, 19 Jan 2012 01:53:26 -0600 Subject: [PATCH] Add application/json type for canned success/failure responses --- cgi/canned_responses.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cgi/canned_responses.c b/cgi/canned_responses.c index a1e4f29..3b09913 100644 --- a/cgi/canned_responses.c +++ b/cgi/canned_responses.c @@ -36,9 +36,11 @@ void respond_405() { } void respond_JSON_Failure() { + printf("Content-type: application/json\r\n"); respond_simple_data(JSON_FAILURE, strlen(JSON_FAILURE)); } void respond_JSON_Success() { + printf("Content-type: application/json\r\n"); respond_simple_data(JSON_SUCCESS, strlen(JSON_SUCCESS)); } -- 2.34.1