nghttpx: Use move to insert crumbled cookies

This commit is contained in:
Tatsuhiro Tsujikawa 2014-04-05 23:45:07 +09:00
parent f763d76110
commit 59c9c4511c
1 changed files with 2 additions and 1 deletions

View File

@ -234,7 +234,8 @@ void Downstream::crumble_request_cookie()
}
}
request_headers_.insert(std::end(request_headers_),
std::begin(cookie_hdrs), std::end(cookie_hdrs));
std::make_move_iterator(std::begin(cookie_hdrs)),
std::make_move_iterator(std::end(cookie_hdrs)));
}
const std::string& Downstream::get_assembled_request_cookie() const