X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=demo%2Fserver%2Fproxy.php;h=a0a0f1d9c59081a9a65172426fbe27153d7cc922;hb=3b18a711d68f936d7395ade1903fe0875cb5fd9c;hp=978a235a01eb65ef13d1192c38a49e13ffd12247;hpb=8f4c5db034a556796990a763295c7174bcebbe06;p=plcapi.git diff --git a/demo/server/proxy.php b/demo/server/proxy.php index 978a235..a0a0f1d 100644 --- a/demo/server/proxy.php +++ b/demo/server/proxy.php @@ -60,7 +60,7 @@ function forward_request($req) /// @todo find a way to forward client info (such as IP) to server, either /// - as xml comments in the payload, or /// - using std http header conventions, such as X-forwarded-for... - $reqMethod = $encoder->decode($req->getParam(1)); + $reqMethod = $req->getParam(1)->scalarval(); $pars = $req->getParam(2); $req = new PhpXmlRpc\Request($reqMethod); foreach ($pars as $par) {