mirror of
https://github.com/boostorg/beast.git
synced 2025-08-01 05:44:38 +02:00
@@ -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
|
||||
|
@@ -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();
|
||||
}
|
||||
|
||||
|
@@ -9,6 +9,7 @@
|
||||
#include <beast/http/write.hpp>
|
||||
|
||||
#include <beast/http/buffer_body.hpp>
|
||||
#include <beast/http/empty_body.hpp>
|
||||
#include <beast/http/fields.hpp>
|
||||
#include <beast/http/message.hpp>
|
||||
#include <beast/http/read.hpp>
|
||||
@@ -791,16 +792,30 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
testIssue655()
|
||||
{
|
||||
boost::asio::io_service ios;
|
||||
test::pipe c{ios};
|
||||
|
||||
response<empty_body> res;
|
||||
res.chunked(true);
|
||||
response_serializer<empty_body> 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();
|
||||
|
Reference in New Issue
Block a user