From aa07076f292b10649c9406a969a56869927af9f1 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sun, 18 Nov 2012 23:49:41 +0900 Subject: [PATCH] shrpx: Don't propagate expect: 100-continue to backend --- src/shrpx_spdy_downstream_connection.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/shrpx_spdy_downstream_connection.cc b/src/shrpx_spdy_downstream_connection.cc index 63ec1edb..0f88e511 100644 --- a/src/shrpx_spdy_downstream_connection.cc +++ b/src/shrpx_spdy_downstream_connection.cc @@ -235,6 +235,9 @@ int SpdyDownstreamConnection::push_request_headers() via_value = (*i).second; } else if(util::strieq((*i).first.c_str(), "x-forwarded-for")) { xff_value = (*i).second; + } else if(util::strieq((*i).first.c_str(), "expect") && + util::strifind((*i).second.c_str(), "100-continue")) { + // Ignore } else if(util::strieq((*i).first.c_str(), "host")) { nv[hdidx++] = ":host"; nv[hdidx++] = (*i).second.c_str();