fix: [internal] Array to string conversion when constructing request

pull/6394/head
Jakub Onderka 2020-10-06 17:27:53 +02:00
parent 9b1e1cb1ba
commit cf070bd7dd
1 changed files with 2 additions and 2 deletions

View File

@ -2566,13 +2566,13 @@ class AppModel extends Model
*/
protected function setupSyncRequest(array $server)
{
$version = $this->checkMISPVersion();
$version = implode('.', $this->checkMISPVersion());
$request = array(
'header' => array(
'Authorization' => $server['Server']['authkey'],
'Accept' => 'application/json',
'Content-Type' => 'application/json',
'MISP-version' => implode('.', $version),
'MISP-version' => $version,
)
);