]> source.dussan.org Git - nextcloud-server.git/commitdiff
Push json to the lookupserver
authorRoeland Jago Douma <roeland@famdouma.nl>
Fri, 18 Nov 2016 13:19:47 +0000 (14:19 +0100)
committerRoeland Jago Douma <roeland@famdouma.nl>
Mon, 21 Nov 2016 10:30:01 +0000 (11:30 +0100)
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
apps/lookup_server_connector/lib/UpdateLookupServer.php

index abbc0e2b2d5859adf075cd423a86e647221d38af..e147536bb86521b2705dddd6bf07e39710e3322c 100644 (file)
@@ -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,
                        ]
                );