nul
This commit is contained in:
parent
24262bffe7
commit
286730b70d
3 changed files with 4 additions and 3 deletions
1
httpd/.gitignore
vendored
1
httpd/.gitignore
vendored
|
|
@ -7,3 +7,4 @@
|
||||||
*.core
|
*.core
|
||||||
httpd
|
httpd
|
||||||
__pycache__
|
__pycache__
|
||||||
|
env/
|
||||||
|
|
|
||||||
|
|
@ -230,7 +230,7 @@ struct config *parse_configuration(int argc, char *argv[])
|
||||||
// Check config validity
|
// Check config validity
|
||||||
if (check_config(config) != 0)
|
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);
|
config_destroy(config);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
#include <stdint.h>
|
// #include <stdint.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.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))
|
strlen("HTTP/1.1") != 0))
|
||||||
resp->status_code = 505;
|
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
|
// === Functions
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue