mirror of
https://github.com/opus-tango/http-server-in-c.git
synced 2026-03-20 03:55:25 +00:00
fix string and pointer bugs to actually send 404
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user