From 17699b1fdf3216705eaed79df9f12facca4e3c07 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sat, 14 Jul 2012 17:36:55 +0900 Subject: [PATCH] shrpx: Create absoluteURI only when path starts with '/' --- examples/shrpx_spdy_upstream.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/shrpx_spdy_upstream.cc b/examples/shrpx_spdy_upstream.cc index 2f8a075..489679a 100644 --- a/examples/shrpx_spdy_upstream.cc +++ b/examples/shrpx_spdy_upstream.cc @@ -169,8 +169,7 @@ void on_ctrl_recv_callback upstream->rst_stream(downstream, SPDYLAY_INTERNAL_ERROR); return; } - if(get_config()->spdy_proxy && scheme && - !util::istartsWith(path, scheme)) { + if(get_config()->spdy_proxy && scheme && path[0] == '/') { std::string reqpath = scheme; reqpath += "://"; reqpath += host;