fix string and pointer bugs to actually send 404

This commit is contained in:
Nayan
2025-05-08 17:37:23 -04:00
parent ddf6f8812f
commit b12cfd2c17
5 changed files with 12 additions and 9 deletions

View File

@@ -9,6 +9,7 @@ void response_handle_get(http_request* req, http_response* res) {
printf("%s\n", file_path);
serve_404(res);
return;
// Determine the file type
char* ptr = file_path + strlen(file_path) - 1;