From 5fdb36239a8a3f4a8e84ab30a38e9a73fc8cfb4b Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Mon, 25 May 2015 23:59:18 +0900 Subject: [PATCH] nghttpx: Don't send Expect header field twice --- src/shrpx_http_downstream_connection.cc | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/shrpx_http_downstream_connection.cc b/src/shrpx_http_downstream_connection.cc index 6329e55c..f46b4e68 100644 --- a/src/shrpx_http_downstream_connection.cc +++ b/src/shrpx_http_downstream_connection.cc @@ -332,12 +332,6 @@ int HttpDownstreamConnection::push_request_headers() { hdrs += downstream_->get_request_http2_scheme(); hdrs += "\r\n"; } - auto expect = downstream_->get_request_header(http2::HD_EXPECT); - if (expect && !util::strifind((*expect).value.c_str(), "100-continue")) { - hdrs += "Expect: "; - hdrs += (*expect).value; - hdrs += "\r\n"; - } auto via = downstream_->get_request_header(http2::HD_VIA); if (get_config()->no_via) { if (via) {