summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2021-11-06 08:56:57 +0100
committerSanto Cariotti <santo@dcariotti.me>2021-11-06 08:56:57 +0100
commit37ba5d61d6b8eb53dd2dc05cce6bf0efe59c64d5 (patch)
treea01b50adb8b4e4ff24a3215c7447a9afddf4dc99
parent97ec0740a9ee3269b358859bd45fb03dbd8a49e1 (diff)
use text/html as content-type default
-rw-r--r--Year_3/TSDWL/webserver/server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Year_3/TSDWL/webserver/server.c b/Year_3/TSDWL/webserver/server.c
index 000c66f..823fea3 100644
--- a/Year_3/TSDWL/webserver/server.c
+++ b/Year_3/TSDWL/webserver/server.c
@@ -265,7 +265,7 @@ read_file(char* root, request_t* request, int client)
sprintf(buffer, "Date: %s", ctime(&now));
write(client, buffer, strlen(buffer));
- sprintf(buffer, "Content-Type: text/txt; charset=UTF-8\n");
+ sprintf(buffer, "Content-Type: text/html; charset=UTF-8\n");
write(client, buffer, strlen(buffer));
sprintf(buffer, "Content-Length: %ld\n", sb.st_size);