1
0
Fork 0
mirror of https://gitlab.com/niansa/simpsh-httpd.git synced 2025-03-06 20:53:36 +01:00
simpsh-httpd/cport/httpheaders.c
2020-08-04 14:53:23 +02:00

17 lines
485 B
C

void httpheaders() {
struct databuffer thisdb;
// Generation of the HTTP-headers
db_append(&outfile, &status);
thisdb = auto_db("\nDate: ");
db_append(&outfile, &thisdb);
const char *command[] = {"date", NULL};
db_cmdread(&outfile, command);
thisdb = auto_db("\nServer: httpd");
db_append(&outfile, &thisdb);
thisdb = auto_db("\nContent-Type: ");
db_append(&outfile, &thisdb);
db_append(&outfile, &contenttype);
thisdb = auto_db("\n\n");
db_append(&outfile, &thisdb);
}