[core] Make response data shared to avoid excessive copying

This commit is contained in:
Konstantin Käfer
2015-10-16 16:14:55 +02:00
parent 4e3503ea6c
commit 5173bf1bb8
33 changed files with 135 additions and 117 deletions

View File

@@ -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;