mirror of
https://github.com/GeoffreyFrogeye/phroxyp.git
synced 2024-11-21 19:36:04 +01:00
Allow empty localRoot
This commit is contained in:
parent
bc30ea6f88
commit
64b2a4e09d
|
@ -31,7 +31,9 @@ class Proxy {
|
||||||
// Target determination
|
// Target determination
|
||||||
$metd = $_SERVER['REQUEST_METHOD'];
|
$metd = $_SERVER['REQUEST_METHOD'];
|
||||||
$reqp = $_SERVER['REQUEST_URI'];
|
$reqp = $_SERVER['REQUEST_URI'];
|
||||||
|
if ($localRoot != '') {
|
||||||
$reqp = str_replace_once($localRoot, '', $reqp); // TODO Reliable method
|
$reqp = str_replace_once($localRoot, '', $reqp); // TODO Reliable method
|
||||||
|
}
|
||||||
|
|
||||||
// Preparing request headers
|
// Preparing request headers
|
||||||
$reqHeds = "$metd $root$reqp HTTP/1.1\r\n";
|
$reqHeds = "$metd $root$reqp HTTP/1.1\r\n";
|
||||||
|
|
Loading…
Reference in a new issue