From 24453cf0bd02fd57063525f9755df21d51817548 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Tue, 24 Jul 2012 00:08:12 +0900 Subject: [PATCH] Don't add X-Forwarded-Spdy in SPDY proxy mode --- examples/shrpx_spdy_upstream.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/shrpx_spdy_upstream.cc b/examples/shrpx_spdy_upstream.cc index 5f63f30d..c2cabc64 100644 --- a/examples/shrpx_spdy_upstream.cc +++ b/examples/shrpx_spdy_upstream.cc @@ -186,7 +186,9 @@ void on_ctrl_recv_callback } downstream->add_request_header("host", host); - downstream->add_request_header("X-Forwarded-Spdy", "true"); + if(!get_config()->spdy_proxy) { + downstream->add_request_header("X-Forwarded-Spdy", "true"); + } if(ENABLE_LOG) { std::stringstream ss;