<?php
/**
- * @copyright Copyright (C) 2010-2023, the Friendica project
+ * @copyright Copyright (C) 2010-2024, the Friendica project
*
* @license GNU AGPL version 3 or any later version
*
}
$header = [
- 'Accept' => ['application/x-dfrn+json', 'application/x-zot+json'],
- 'X-Open-Web-Auth' => [Strings::getRandomHex()],
+ 'Accept' => 'application/x-dfrn+json, application/x-zot+json',
+ 'X-Open-Web-Auth' => Strings::getRandomHex()
];
// Create a header that is signed with the local users private key.
System::externalRedirect($dest);
}
- $j = json_decode($curlResult->getBody(), true);
+ $j = json_decode($curlResult->getBodyString(), true);
if (empty($j) || !$j['success']) {
$this->logger->notice('Invalid JSON, redirecting to destination.', ['json' => $j, 'dest' => $dest]);
$this->app->redirect($dest);