limit header size

This commit is contained in:
lxsang 2020-08-27 13:42:58 +02:00
parent 806a7ccc6a
commit 5e60eeac02

View File

@ -766,6 +766,7 @@ void *decode_request_header(void *data)
if(header_size > HEADER_MAX_SIZE)
{
antd_error(rq->client, 413, "Payload Too Large");
ERROR("Header size too large (%d): %d vs %d", rq->client->sock, header_size, HEADER_MAX_SIZE);
return antd_create_task(NULL, (void *)rq, NULL, rq->client->last_io);
}
}