summaryrefslogtreecommitdiffstats
path: root/apps/lookup_server_connector
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2016-11-18 14:19:47 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2016-11-21 11:30:01 +0100
commitc20c7f31da84ac1330707b3f23e75b9ade879206 (patch)
treeb26a203277f269541f881cd45f1d6d48fbbc606c /apps/lookup_server_connector
parentf7f70028d19d3191d0091f3c5d1b43aa1ac2d4eb (diff)
downloadnextcloud-server-c20c7f31da84ac1330707b3f23e75b9ade879206.tar.gz
nextcloud-server-c20c7f31da84ac1330707b3f23e75b9ade879206.zip
Push json to the lookupserver
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/lookup_server_connector')
-rw-r--r--apps/lookup_server_connector/lib/UpdateLookupServer.php6
1 files changed, 3 insertions, 3 deletions
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,
]
);