1
0
Fork 0

Fix performance improvements w.r.t. headers.

This commit is contained in:
Max Neunhoeffer 2016-07-20 16:05:21 -07:00
parent ce35cd70e9
commit 2aa6cae452
1 changed files with 1 additions and 0 deletions

View File

@ -1283,6 +1283,7 @@ size_t ClusterComm::performSingleRequest(
basics::StringBuffer& buffer = req.result.result->getBody();
auto answer = new FakeRequest(type, buffer.c_str(),
static_cast<int64_t>(buffer.length()));
answer->setHeaders(req.result.result->getHeaderFields());
req.result.answer.reset(static_cast<GeneralRequest*>(answer));
req.result.answer_code = static_cast<GeneralResponse::ResponseCode>(
req.result.result->getHttpReturnCode());