Skip to content

Commit cbf5873

Browse files
committed
Delint (http header maximum).
1 parent 3f6f5e8 commit cbf5873

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/net/socket.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ void socket::do_http_read(std::reference_wrapper<http::flat_buffer> buffer,
552552
parser->body_limit(maximum_);
553553

554554
// Causes http::error::header_limit on completion.
555-
parser->header_limit(maximum_);
555+
parser->header_limit(limit<uint32_t>(maximum_));
556556

557557
// This operation posts handler to the strand.
558558
beast::http::async_read(socket_, buffer.get(), *parser,

0 commit comments

Comments
 (0)