This commit is contained in:
Thaz
2021-06-10 11:08:15 +08:00
committed by GitHub
parent f8fdec47d7
commit 9624b3c4f3

View File

@@ -42,8 +42,8 @@ int main(int argc, char *argv[]) {
sprintf(content, "%s<p>I spun for %.2f seconds</p>\r\n", content, t2 - t1);
/* Generate the HTTP response */
printf("Content-length: %lu\r\n", strlen(content));
printf("Content-type: text/html\r\n\r\n");
printf("Content-Length: %lu\r\n", strlen(content));
printf("Content-Type: text/html\r\n\r\n");
printf("%s", content);
fflush(stdout);