This commit is contained in:
Guillem George 2026-01-05 15:18:56 +01:00
parent 24262bffe7
commit 286730b70d
3 changed files with 4 additions and 3 deletions

1
httpd/.gitignore vendored
View file

@ -7,3 +7,4 @@
*.core
httpd
__pycache__
env/

View file

@ -230,7 +230,7 @@ struct config *parse_configuration(int argc, char *argv[])
// Check config validity
if (check_config(config) != 0)
{
printf("%s: Missing mandatory flags, cannot continue.", argv[0]);
printf("%s: Missing mandatory flags, cannot continue.\n", argv[0]);
config_destroy(config);
return NULL;
}

View file

@ -2,7 +2,7 @@
#include <fcntl.h>
#include <limits.h>
#include <stdint.h>
// #include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@ -187,7 +187,7 @@ static void check_req(struct http_request *req, struct http_response *resp)
strlen("HTTP/1.1") != 0))
resp->status_code = 505;
printf("%s %d\n", req->protocol->data, resp->status_code);
// printf("%s %d\n", req->protocol->data, resp->status_code);
}
// === Functions