fixed assert in http_connection
This commit is contained in:
@@ -493,8 +493,8 @@ void http_connection::callback(error_code const& e, char const* data, int size)
|
|||||||
close();
|
close();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
data = &buf[0];
|
|
||||||
size = int(buf.size());
|
size = int(buf.size());
|
||||||
|
data = size == 0 ? 0 : &buf[0];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
m_called = true;
|
m_called = true;
|
||||||
|
Reference in New Issue
Block a user