Skip to content

Commit 5adf6ee

Browse files
committed
Update Beast
1 parent 6d3b53b commit 5adf6ee

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ project(pusher++ CXX)
99
set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
1010
set(CMAKE_CXX_EXTENSIONS OFF)
1111

12-
set(BEAST_GIT_TAG c8a42bb) # 110
12+
set(BEAST_GIT_TAG 0bc2a41) # 121
1313
set(CRYPTOPP_GIT_TAG CRYPTOPP_5_6_5)
1414
set(DATE_GIT_TAG v2.2)
1515
set(RAPIDJSON_GIT_TAG v1.1.0)

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ int main(int argc, char* argv[])
8282
## Requirements
8383
8484
* C++14
85-
* [Beast](https://boostorg/beast) >= 110
85+
* [Beast](https://boostorg/beast) >= 121
8686
* [Boost](http://www.boost.org) >= 1.63
8787
* [RapidJSON](https://github.com/miloyip/rapidjson/) >= v1.1.0
8888
* [Crypto++](https://github.com/weidai11/cryptopp) >= 5.6.5 (server)

pusher++/include/pusher++/detail/server/write.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ namespace pusher { namespace detail { namespace server
5151
http::request<http::string_body> req{http::verb::post, url, 11};
5252
req.set(http::field::host, host_and_port);
5353
req.set(http::field::content_type, "application/json");
54-
req.body = body;
54+
req.body() = body;
5555
req.prepare_payload();
5656
return req;
5757
}

pusher++/include/pusher++/server.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,12 @@ namespace pusher
9090
auto host_and_port = host_ + ":" + std::to_string(socket_.remote_endpoint().port());
9191
request_ = detail::server::make_request(host_and_port, url, body);
9292

93-
boost::beast::http::async_write(socket_, request_, [this, handler](auto ec) mutable
93+
boost::beast::http::async_write(socket_, request_, [this, handler](auto ec, size_t) mutable
9494
{
9595
if(ec)
9696
return handler(ec, response{});
9797

98-
boost::beast::http::async_read(socket_, response_buf_, response_, [this, handler](auto ec) mutable
98+
boost::beast::http::async_read(socket_, response_buf_, response_, [this, handler](auto ec, size_t) mutable
9999
{
100100
response res;
101101
boost::swap(res, response_);

0 commit comments

Comments
 (0)