diff --git a/CHANGELOG.md b/CHANGELOG.md index 559d3d79..ca922c2a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,15 @@ +Version 82: + * Documentation tidying * is_invocable works with move-only types * Use std::function and reference wrapper * Add session_alloc to example/common * Silence spurious warning +HTTP + +* Fix extraneous argument in async_write_header + WebSocket * stream tidying diff --git a/include/beast/http/impl/write.ipp b/include/beast/http/impl/write.ipp index e0122e17..d6eb38a9 100644 --- a/include/beast/http/impl/write.ipp +++ b/include/beast/http/impl/write.ipp @@ -647,7 +647,7 @@ async_write_header( detail::serializer_is_header_done, isRequest, Body, Fields>{ init.completion_handler, stream, sr}( - error_code{}, 0); + error_code{}); return init.result.get(); } diff --git a/test/http/write.cpp b/test/http/write.cpp index 10d6f4e3..d2aac8e1 100644 --- a/test/http/write.cpp +++ b/test/http/write.cpp @@ -9,6 +9,7 @@ #include #include +#include #include #include #include @@ -791,16 +792,30 @@ public: } } + void + testIssue655() + { + boost::asio::io_service ios; + test::pipe c{ios}; + + response res; + res.chunked(true); + response_serializer sr{res}; + async_write_header(c.client, sr, + [&](const error_code&) + { + }); + + ios.run(); + } + void run() override { + testIssue655(); yield_to( [&](yield_context yield) { testAsyncWrite(yield); - }); - yield_to( - [&](yield_context yield) - { testFailures(yield); }); testOutput();