Skip to content

Commit

Permalink
Fix Content-type response header.
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinav-upadhyay committed Jan 25, 2013
1 parent da116d0 commit 91a3d2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion suggest_cgi.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ main(int argc, char **argv)
exit(EXIT_FAILURE);

db = init_db(MANDB_READONLY, MANCONF);
printf("Content-type:application/json;\n");
query = parse_space(query);
char *suggestions = get_suggestions(db, query);
printf("Content-type: application/json\n\n");
printf("%s\n", suggestions);
free(suggestions);
return 0;
Expand Down

0 comments on commit 91a3d2a

Please sign in to comment.