From f5a4c9d971e5fc18132fefa11889caecc31661cd Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Fri, 4 Nov 2016 22:06:01 +0900 Subject: [PATCH] nghttpx: Don't copy non-final nva since they are backed by Downstream --- src/shrpx_http2_upstream.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shrpx_http2_upstream.cc b/src/shrpx_http2_upstream.cc index 23c2287c..b1882abf 100644 --- a/src/shrpx_http2_upstream.cc +++ b/src/shrpx_http2_upstream.cc @@ -1617,7 +1617,7 @@ int Http2Upstream::on_downstream_header_complete(Downstream *downstream) { nva.push_back(http2::make_nv_ls_nocopy(":status", response_status)); 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)) { log_response_headers(downstream, nva);