Don't prepend scheme and host to path if path starts with scheme.

This is just a sanity check in caes of path contains absoluteURI.
This commit is contained in:
Tatsuhiro Tsujikawa 2012-07-12 23:44:30 +09:00
parent e5249538a6
commit a47feb22cb
1 changed files with 2 additions and 1 deletions

View File

@ -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;