diff --git a/examples/shrpx_spdy_upstream.cc b/examples/shrpx_spdy_upstream.cc index ee6fdf14..2f8a0759 100644 --- a/examples/shrpx_spdy_upstream.cc +++ b/examples/shrpx_spdy_upstream.cc @@ -169,7 +169,8 @@ void on_ctrl_recv_callback upstream->rst_stream(downstream, SPDYLAY_INTERNAL_ERROR); return; } - if(get_config()->spdy_proxy && scheme) { + if(get_config()->spdy_proxy && scheme && + !util::istartsWith(path, scheme)) { std::string reqpath = scheme; reqpath += "://"; reqpath += host;