HttpServerConnection: fix side effect of HTTP parser's default body limit

This commit is contained in:
Alexander A. Klimov 2019-04-01 10:14:24 +02:00
parent d428bdf384
commit 24c9542b5b
1 changed files with 1 additions and 0 deletions

View File

@ -406,6 +406,7 @@ void HttpServerConnection::ProcessMessages(boost::asio::yield_context yc)
http::response<http::string_body> response;
parser.header_limit(1024 * 1024);
parser.body_limit(-1);
response.set(http::field::server, l_ServerHeader);