Clean up the sample CGI source.

This commit is contained in:
kristapsdz committed 2016-03-15 11:36:20 +00:00
1 parent feb2f546ae
commit 2a7c50b61f
2 files changed
+5 -4

No files matched your search

+4 -4
View File
@@ -5,9 +5,9 @@ int
main(void)
{
printf("Status: 200 OK\r\n");
printf("Content-Type: text/html\r\n");
printf("\r\n");
printf("Hello, world.\n");
puts("Status: 200 OK\r");
puts("Content-Type: text/html\r");
puts("\r");
puts("Hello, world.");
return(EXIT_SUCCESS);
}
+1
View File
@@ -293,6 +293,7 @@ main(void)
if (KCGI_OK != er) {
fprintf(stderr, "Terminate: parse error: %d\n", er);
khttp_free(&r);
return(EXIT_FAILURE);
}