[core] Make response data shared to avoid excessive copying
This commit is contained in:
@@ -163,7 +163,7 @@ void Source::load() {
|
||||
}
|
||||
|
||||
rapidjson::Document d;
|
||||
d.Parse<0>(res.data.c_str());
|
||||
d.Parse<0>(res.data->c_str());
|
||||
|
||||
if (d.HasParseError()) {
|
||||
std::stringstream message;
|
||||
|
||||
Reference in New Issue
Block a user