http connection error handling fix
This commit is contained in:
parent
d73f4f0c92
commit
b664f7faa3
|
@ -533,7 +533,7 @@ void http_connection::callback(error_code e, char const* data, int size)
|
||||||
if (m_bottled && m_called) return;
|
if (m_bottled && m_called) return;
|
||||||
|
|
||||||
std::vector<char> buf;
|
std::vector<char> buf;
|
||||||
if (m_bottled && m_parser.header_finished())
|
if (data && m_bottled && m_parser.header_finished())
|
||||||
{
|
{
|
||||||
if (m_parser.chunked_encoding())
|
if (m_parser.chunked_encoding())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue