mirror of
https://github.com/boostorg/beast.git
synced 2025-08-03 23:04:35 +02:00
Spaces not tabs
This commit is contained in:
@@ -290,20 +290,20 @@ on_read(beast::error_code ec, std::size_t)
|
|||||||
// NOTE This causes an ICE in gcc 7.3
|
// NOTE This causes an ICE in gcc 7.3
|
||||||
// Write the response
|
// Write the response
|
||||||
http::async_write(this->socket_, *sp,
|
http::async_write(this->socket_, *sp,
|
||||||
[self = shared_from_this(), sp](
|
[self = shared_from_this(), sp](
|
||||||
beast::error_code ec, std::size_t bytes)
|
beast::error_code ec, std::size_t bytes)
|
||||||
{
|
{
|
||||||
self->on_write(ec, bytes, sp->need_eof());
|
self->on_write(ec, bytes, sp->need_eof());
|
||||||
});
|
});
|
||||||
#else
|
#else
|
||||||
// Write the response
|
// Write the response
|
||||||
auto self = shared_from_this();
|
auto self = shared_from_this();
|
||||||
http::async_write(this->socket_, *sp,
|
http::async_write(this->socket_, *sp,
|
||||||
[self, sp](
|
[self, sp](
|
||||||
beast::error_code ec, std::size_t bytes)
|
beast::error_code ec, std::size_t bytes)
|
||||||
{
|
{
|
||||||
self->on_write(ec, bytes, sp->need_eof());
|
self->on_write(ec, bytes, sp->need_eof());
|
||||||
});
|
});
|
||||||
#endif
|
#endif
|
||||||
});
|
});
|
||||||
#else
|
#else
|
||||||
|
@@ -294,21 +294,21 @@ on_read(beast::error_code ec, std::size_t)
|
|||||||
// Write the response
|
// Write the response
|
||||||
http::async_write(this->socket_, *sp,
|
http::async_write(this->socket_, *sp,
|
||||||
net::bind_executor(strand_,
|
net::bind_executor(strand_,
|
||||||
[self = shared_from_this(), sp](
|
[self = shared_from_this(), sp](
|
||||||
beast::error_code ec, std::size_t bytes)
|
beast::error_code ec, std::size_t bytes)
|
||||||
{
|
{
|
||||||
self->on_write(ec, bytes, sp->need_eof());
|
self->on_write(ec, bytes, sp->need_eof());
|
||||||
}));
|
}));
|
||||||
#else
|
#else
|
||||||
// Write the response
|
// Write the response
|
||||||
auto self = shared_from_this();
|
auto self = shared_from_this();
|
||||||
http::async_write(this->socket_, *sp,
|
http::async_write(this->socket_, *sp,
|
||||||
net::bind_executor(strand_,
|
net::bind_executor(strand_,
|
||||||
[self, sp](
|
[self, sp](
|
||||||
beast::error_code ec, std::size_t bytes)
|
beast::error_code ec, std::size_t bytes)
|
||||||
{
|
{
|
||||||
self->on_write(ec, bytes, sp->need_eof());
|
self->on_write(ec, bytes, sp->need_eof());
|
||||||
}));
|
}));
|
||||||
#endif
|
#endif
|
||||||
});
|
});
|
||||||
#else
|
#else
|
||||||
|
Reference in New Issue
Block a user