shrpx: Create absoluteURI only when path starts with '/'
This commit is contained in:
parent
3fc0e4dd6b
commit
17699b1fdf
|
@ -169,8 +169,7 @@ 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 && path[0] == '/') {
|
||||||
!util::istartsWith(path, scheme)) {
|
|
||||||
std::string reqpath = scheme;
|
std::string reqpath = scheme;
|
||||||
reqpath += "://";
|
reqpath += "://";
|
||||||
reqpath += host;
|
reqpath += host;
|
||||||
|
|
Loading…
Reference in New Issue