mirror of
https://github.com/moparisthebest/spdylay
synced 2024-11-05 09:05:07 -05:00
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);
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user