mirror of
https://github.com/lxsang/ant-http
synced 2024-11-17 17:08:20 +01:00
limit header size
This commit is contained in:
parent
806a7ccc6a
commit
5e60eeac02
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user