Don't add X-Forwarded-Spdy in SPDY proxy mode

This commit is contained in:
Tatsuhiro Tsujikawa 2012-07-24 00:08:12 +09:00
parent 75f93d8333
commit 24453cf0bd
1 changed files with 3 additions and 1 deletions

View File

@ -186,7 +186,9 @@ void on_ctrl_recv_callback
} }
downstream->add_request_header("host", host); 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) { if(ENABLE_LOG) {
std::stringstream ss; std::stringstream ss;