Renamed http strict and not strict

This commit is contained in:
2020-12-16 18:43:53 +01:00
parent 1be4929c6c
commit 812d5ab384
3 changed files with 6 additions and 6 deletions

View File

@ -79,9 +79,9 @@ int client_request_handler(sock *client, int req_num) {
goto respond;
}
hdr_connection = http_get_header_field(&req.hdr, "Connection", HTTP_NOT_STRICT);
hdr_connection = http_get_header_field(&req.hdr, "Connection", HTTP_LOWER);
client_keep_alive = hdr_connection != NULL && strncmp(hdr_connection, "keep-alive", 10) == 0;
host = http_get_header_field(&req.hdr, "Host", HTTP_NOT_STRICT);
host = http_get_header_field(&req.hdr, "Host", HTTP_LOWER);
if (host == NULL || strchr(host, '/') != NULL) {
res.status = http_get_status(400);
sprintf(err_msg, "The client provided no or an invalid Host header field.");