projects
/
blerg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add application/json type for canned success/failure responses
[blerg.git]
/
cgi
/
canned_responses.c
diff --git
a/cgi/canned_responses.c
b/cgi/canned_responses.c
index
a1e4f29
..
3b09913
100644
(file)
--- a/
cgi/canned_responses.c
+++ b/
cgi/canned_responses.c
@@
-36,9
+36,11
@@
void respond_405() {
}
void respond_JSON_Failure() {
}
void respond_JSON_Failure() {
+ printf("Content-type: application/json\r\n");
respond_simple_data(JSON_FAILURE, strlen(JSON_FAILURE));
}
void respond_JSON_Success() {
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));
}
respond_simple_data(JSON_SUCCESS, strlen(JSON_SUCCESS));
}