]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Magic.php
Add suggestions
[friendica.git] / src / Module / Magic.php
index 45fde43f64657bc334958ca85eef3f2fac3908c6..12747dca7cca63a6180006dc663b4b07c5ec990a 100644 (file)
@@ -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(