changeset 783:d0bd19183743

Plugin links: enable limit to buffer size, closes #942
author David Demelier <markand@malikania.fr>
date Mon, 05 Nov 2018 13:47:51 +0100
parents 2d188a3e8802
children 7145a3df4cb7
files plugins/links/requester.hpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/links/requester.hpp	Mon Nov 05 13:46:33 2018 +0100
+++ b/plugins/links/requester.hpp	Mon Nov 05 13:47:51 2018 +0100
@@ -69,7 +69,7 @@
 	boost::asio::ssl::context ctx_{boost::asio::ssl::context::sslv23};
 #endif
 
-	boost::beast::flat_buffer buffer_;
+	boost::beast::flat_buffer buffer_{163840};
 	boost::beast::http::request<boost::beast::http::empty_body> req_;
 	boost::beast::http::response<boost::beast::http::string_body> res_;
 	boost::asio::deadline_timer timer_;