1
0
mirror of https://github.com/lxsang/ant-http synced 2024-07-01 12:59:47 +02:00

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);
}
}