From dc8562306075f4073f560c2ec3b9ebf6118788f0 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Thu, 26 Mar 2015 22:52:51 +0900 Subject: [PATCH] nghttpx: Fix PUSH_PROMISE header field corruption Fixes GH-194 --- src/shrpx_http2_upstream.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shrpx_http2_upstream.cc b/src/shrpx_http2_upstream.cc index fb6ff799..f7915561 100644 --- a/src/shrpx_http2_upstream.cc +++ b/src/shrpx_http2_upstream.cc @@ -1589,11 +1589,11 @@ int Http2Upstream::submit_push_promise(const std::string &path, // juse use "GET" for now nva.push_back(http2::make_nv_ll(":method", "GET")); nva.push_back( - http2::make_nv(":scheme", downstream->get_request_http2_scheme())); + http2::make_nv_ls(":scheme", downstream->get_request_http2_scheme())); nva.push_back(http2::make_nv_ls(":path", path)); auto &authority = downstream->get_request_http2_authority(); if (!authority.empty()) { - nva.push_back(http2::make_nv(":authority", authority)); + nva.push_back(http2::make_nv_ls(":authority", authority)); } for (auto &kv : downstream->get_request_headers()) {