mirror of
https://github.com/boostorg/beast.git
synced 2025-08-02 14:24:31 +02:00
@@ -1,9 +1,15 @@
|
|||||||
|
Version 82:
|
||||||
|
|
||||||
* Documentation tidying
|
* Documentation tidying
|
||||||
* is_invocable works with move-only types
|
* is_invocable works with move-only types
|
||||||
* Use std::function and reference wrapper
|
* Use std::function and reference wrapper
|
||||||
* Add session_alloc to example/common
|
* Add session_alloc to example/common
|
||||||
* Silence spurious warning
|
* Silence spurious warning
|
||||||
|
|
||||||
|
HTTP
|
||||||
|
|
||||||
|
* Fix extraneous argument in async_write_header
|
||||||
|
|
||||||
WebSocket
|
WebSocket
|
||||||
|
|
||||||
* stream tidying
|
* stream tidying
|
||||||
|
@@ -647,7 +647,7 @@ async_write_header(
|
|||||||
detail::serializer_is_header_done,
|
detail::serializer_is_header_done,
|
||||||
isRequest, Body, Fields>{
|
isRequest, Body, Fields>{
|
||||||
init.completion_handler, stream, sr}(
|
init.completion_handler, stream, sr}(
|
||||||
error_code{}, 0);
|
error_code{});
|
||||||
return init.result.get();
|
return init.result.get();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -9,6 +9,7 @@
|
|||||||
#include <beast/http/write.hpp>
|
#include <beast/http/write.hpp>
|
||||||
|
|
||||||
#include <beast/http/buffer_body.hpp>
|
#include <beast/http/buffer_body.hpp>
|
||||||
|
#include <beast/http/empty_body.hpp>
|
||||||
#include <beast/http/fields.hpp>
|
#include <beast/http/fields.hpp>
|
||||||
#include <beast/http/message.hpp>
|
#include <beast/http/message.hpp>
|
||||||
#include <beast/http/read.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
|
void run() override
|
||||||
{
|
{
|
||||||
|
testIssue655();
|
||||||
yield_to(
|
yield_to(
|
||||||
[&](yield_context yield)
|
[&](yield_context yield)
|
||||||
{
|
{
|
||||||
testAsyncWrite(yield);
|
testAsyncWrite(yield);
|
||||||
});
|
|
||||||
yield_to(
|
|
||||||
[&](yield_context yield)
|
|
||||||
{
|
|
||||||
testFailures(yield);
|
testFailures(yield);
|
||||||
});
|
});
|
||||||
testOutput();
|
testOutput();
|
||||||
|
Reference in New Issue
Block a user