1
0
mirror of https://github.com/moparisthebest/spdylay synced 2024-12-21 23:28:52 -05:00

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

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;