1
0
mirror of https://github.com/moparisthebest/spdylay synced 2024-08-13 17:03:54 -04:00

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

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;