mirror of
https://github.com/friendica/friendica
synced 2025-04-19 13:50:15 +00:00
Fix headers (string to array) and make sure the signature doesn't change
This commit is contained in:
parent
f2dcc2788d
commit
befd5c860d
3 changed files with 14 additions and 16 deletions
|
@ -88,9 +88,10 @@ class Magic extends BaseModule
|
|||
$exp = explode('/profile/', $contact['url']);
|
||||
$basepath = $exp[0];
|
||||
|
||||
$header = [];
|
||||
$header['Accept'] = 'application/x-dfrn+json, application/x-zot+json';
|
||||
$header['X-Open-Web-Auth'] = Strings::getRandomHex();
|
||||
$header = [
|
||||
'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.
|
||||
$header = HTTPSignature::createSig(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue