From f7c0df1235d52a0d4993bcbaba1f8e120edfb2fc Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sat, 27 Jul 2013 18:57:33 +0900 Subject: [PATCH] Remove :version from downstream HTTP/2.0 request --- src/shrpx_spdy_downstream_connection.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/shrpx_spdy_downstream_connection.cc b/src/shrpx_spdy_downstream_connection.cc index d4a5c328..282c4c4c 100644 --- a/src/shrpx_spdy_downstream_connection.cc +++ b/src/shrpx_spdy_downstream_connection.cc @@ -224,10 +224,10 @@ int SpdyDownstreamConnection::push_request_headers() return 0; } size_t nheader = downstream_->get_request_headers().size(); - // 12 means :method, :scheme, :path, :version and possible via and + // 10 means :method, :scheme, :path and possible via and // x-forwarded-for header fields. We rename host header field as // :host. - const char **nv = new const char*[nheader * 2 + 12 + 1]; + const char **nv = new const char*[nheader * 2 + 10 + 1]; size_t hdidx = 0; std::string via_value; std::string xff_value; @@ -274,8 +274,6 @@ int SpdyDownstreamConnection::push_request_headers() nv[hdidx++] = ":method"; nv[hdidx++] = downstream_->get_request_method().c_str(); - nv[hdidx++] = ":version"; - nv[hdidx++] = "HTTP/1.1"; bool chunked_encoding = false; bool content_length = false; for(Headers::const_iterator i = downstream_->get_request_headers().begin();