1
0
Fork 0
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:
Geoffrey Frogeye 2015-04-09 21:59:17 +02:00
parent bc30ea6f88
commit 64b2a4e09d

View file

@ -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";