From: Roeland Jago Douma Date: Fri, 18 Nov 2016 13:19:47 +0000 (+0100) Subject: Push json to the lookupserver X-Git-Tag: v11.0RC2~191^2~17 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c20c7f31da84ac1330707b3f23e75b9ade879206;p=nextcloud-server.git Push json to the lookupserver Signed-off-by: Roeland Jago Douma --- diff --git a/apps/lookup_server_connector/lib/UpdateLookupServer.php b/apps/lookup_server_connector/lib/UpdateLookupServer.php index abbc0e2b2d5..e147536bb86 100644 --- a/apps/lookup_server_connector/lib/UpdateLookupServer.php +++ b/apps/lookup_server_connector/lib/UpdateLookupServer.php @@ -49,7 +49,7 @@ class UpdateLookupServer { /** @var Signer */ private $signer; /** @var string URL point to lookup server */ - private $lookupServer = 'http://127.0.0.1:3000/index2.php/users'; + private $lookupServer = 'http://127.0.0.1:3000/users'; /** * @param AccountManager $accountManager @@ -124,8 +124,8 @@ class UpdateLookupServer { $httpClient = $this->clientService->newClient(); $httpClient->post($this->lookupServer, [ - 'body' => $dataArray, - 'timeout' => 3, + 'body' => json_encode($dataArray), + 'timeout' => 10, 'connect_timeout' => 3, ] );