git://git.onelab.eu
/
plcapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
travis
[plcapi.git]
/
demo
/
server
/
proxy.php
diff --git
a/demo/server/proxy.php
b/demo/server/proxy.php
index
6e791f4
..
a1b702e
100644
(file)
--- a/
demo/server/proxy.php
+++ b/
demo/server/proxy.php
@@
-5,7
+5,7
@@
* the originating server).
*
* @author Gaetano Giunta
* the originating server).
*
* @author Gaetano Giunta
- * @copyright (C) 2006-20
15
G. Giunta
+ * @copyright (C) 2006-20
20
G. Giunta
* @license code licensed under the BSD License: see file license.txt
*/
* @license code licensed under the BSD License: see file license.txt
*/
@@
-74,6
+74,8
@@
function forward_request($req)
}
// run the server
}
// run the server
+// NB: take care not to output anything else after this call, as it will mess up the responses and it will be hard to
+// debug. In case you have to do so, at least re-emit a correct Content-Length http header (requires output buffering)
$server = new PhpXmlRpc\Server(
array(
'xmlrpcproxy.call' => array(
$server = new PhpXmlRpc\Server(
array(
'xmlrpcproxy.call' => array(