nghttpx: Don't copy non-final nva since they are backed by Downstream

This commit is contained in:
Tatsuhiro Tsujikawa 2016-11-04 22:06:01 +09:00
parent a0dd8918eb
commit f5a4c9d971
1 changed files with 1 additions and 1 deletions

View File

@ -1617,7 +1617,7 @@ int Http2Upstream::on_downstream_header_complete(Downstream *downstream) {
nva.push_back(http2::make_nv_ls_nocopy(":status", response_status)); nva.push_back(http2::make_nv_ls_nocopy(":status", response_status));
if (downstream->get_non_final_response()) { if (downstream->get_non_final_response()) {
http2::copy_headers_to_nva(nva, resp.fs.headers()); http2::copy_headers_to_nva_nocopy(nva, resp.fs.headers());
if (LOG_ENABLED(INFO)) { if (LOG_ENABLED(INFO)) {
log_response_headers(downstream, nva); log_response_headers(downstream, nva);