Push json to the lookupserver
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
f7f70028d1
commit
c20c7f31da
1 changed files with 3 additions and 3 deletions
|
@ -49,7 +49,7 @@ class UpdateLookupServer {
|
||||||
/** @var Signer */
|
/** @var Signer */
|
||||||
private $signer;
|
private $signer;
|
||||||
/** @var string URL point to lookup server */
|
/** @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
|
* @param AccountManager $accountManager
|
||||||
|
@ -124,8 +124,8 @@ class UpdateLookupServer {
|
||||||
$httpClient = $this->clientService->newClient();
|
$httpClient = $this->clientService->newClient();
|
||||||
$httpClient->post($this->lookupServer,
|
$httpClient->post($this->lookupServer,
|
||||||
[
|
[
|
||||||
'body' => $dataArray,
|
'body' => json_encode($dataArray),
|
||||||
'timeout' => 3,
|
'timeout' => 10,
|
||||||
'connect_timeout' => 3,
|
'connect_timeout' => 3,
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue