Changed default file path from '/index.html' to '/'

This commit is contained in:
2023-05-19 11:19:56 -05:00
parent 49030166f3
commit a563ec0e79

2
url.c
View File

@@ -47,7 +47,7 @@ URL* new_url(char* url_str) {
url->filepath = strtok(NULL,"/"); url->filepath = strtok(NULL,"/");
if (url->filepath == NULL) { if (url->filepath == NULL) {
url->filepath = "/index.html"; url->filepath = "/";
} }
return url; return url;