Add application/json type for canned success/failure responses
authorChip Black <bytex64@bytex64.net>
Thu, 19 Jan 2012 07:53:26 +0000 (01:53 -0600)
committerChip Black <bytex64@bytex64.net>
Thu, 19 Jan 2012 07:53:26 +0000 (01:53 -0600)
cgi/canned_responses.c

index a1e4f29..3b09913 100644 (file)
@@ -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));
 }