forked from boostorg/beast
committed by
Klemens Morgenstern
parent
ce99605ef9
commit
860bfbdeab
@@ -369,8 +369,10 @@ write(void const* data,
|
||||
&state_, hooks(),
|
||||
static_cast<const char*>(data), size);
|
||||
if(! ec)
|
||||
ec = detail::make_nodejs_error(
|
||||
static_cast<int>(state_.http_errno));
|
||||
{
|
||||
BOOST_BEAST_ASSIGN_EC(ec, detail::make_nodejs_error(
|
||||
static_cast<int>(state_.http_errno)));
|
||||
}
|
||||
if(ec)
|
||||
return 0;
|
||||
return n;
|
||||
@@ -384,8 +386,10 @@ write_eof(error_code& ec)
|
||||
ec_ = &ec;
|
||||
http_parser_execute(&state_, hooks(), nullptr, 0);
|
||||
if(! ec)
|
||||
ec = detail::make_nodejs_error(
|
||||
static_cast<int>(state_.http_errno));
|
||||
{
|
||||
BOOST_BEAST_ASSIGN_EC(ec, detail::make_nodejs_error(
|
||||
static_cast<int>(state_.http_errno)));
|
||||
}
|
||||
}
|
||||
|
||||
template<class Derived>
|
||||
|
||||
Reference in New Issue
Block a user