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