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:
parent
e5249538a6
commit
a47feb22cb
|
@ -169,7 +169,8 @@ void on_ctrl_recv_callback
|
||||||
upstream->rst_stream(downstream, SPDYLAY_INTERNAL_ERROR);
|
upstream->rst_stream(downstream, SPDYLAY_INTERNAL_ERROR);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if(get_config()->spdy_proxy && scheme) {
|
if(get_config()->spdy_proxy && scheme &&
|
||||||
|
!util::istartsWith(path, scheme)) {
|
||||||
std::string reqpath = scheme;
|
std::string reqpath = scheme;
|
||||||
reqpath += "://";
|
reqpath += "://";
|
||||||
reqpath += host;
|
reqpath += host;
|
||||||
|
|
Loading…
Reference in New Issue