]> git.mxchange.org Git - friendica.git/commitdiff
fix issue #13174
authorgit-marijus <mario@mariovavti.com>
Sat, 17 Jun 2023 20:31:25 +0000 (22:31 +0200)
committergit-marijus <mario@mariovavti.com>
Sat, 17 Jun 2023 20:31:25 +0000 (22:31 +0200)
src/Module/Magic.php
tests/src/Util/HTTPSignatureTest.php

index 5276252de25c57930f5803f766a9effd10a3a3e5..481a748fcf42b01ff7c8318e890e1a28ae9bcb84 100644 (file)
@@ -119,8 +119,8 @@ class Magic extends BaseModule
                $basepath = $gserver['url'];
 
                $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.
index 03b0033fa91bf3eae45a3ab9b06b6245029f3e6f..bc54a9318451210503a8b43a6751191aabcedf72 100644 (file)
@@ -124,8 +124,8 @@ G1vVmRgkLDqhc4+r3wDz3qy6JpV7tg==
 -----END PRIVATE KEY-----',
                                'keyId'  => 'acct:admin@friendica.local',
                                'header' => [
-                                       'Accept'          => ['application/x-dfrn+json', 'application/x-zot+json'],
-                                       'X-Open-Web-Auth' => ['1dde649b855fd1aae542a91c4edd8c3a7a4c59d8eaf3136cdee05dfc16a30bac'],
+                                       'Accept'          => 'application/x-dfrn+json, application/x-zot+json',
+                                       'X-Open-Web-Auth' => '1dde649b855fd1aae542a91c4edd8c3a7a4c59d8eaf3136cdee05dfc16a30bac'
                                ],
                                'signature' => 'Signature keyId="acct:admin@friendica.local",algorithm="rsa-sha512",headers="accept x-open-web-auth",signature="cb09/wdmRdFhrQUczL0lR6LTkVh8qb/vYh70DFCW40QrzvuUYHzJ+GqqJW6tcCb2rXP4t+aobWKfZ4wFMBtVbejAiCgF01pzEBJfDevdyu7khlfKo+Gtw1CGk4/0so1QmqASeHdlG3ID3GnmuovqZn2v5f5D+1UAJ6Pu6mtAXrGRntoEM/oqYBAsRrMtDSDAE4tnOSDu2YfVJJLfyUX1ZWjUK0ejZXZ0YTDJwU8PqRcRX17NhBaDq82dEHlfhD7I/aOclwVbfKIi5Ud619XCxPq0sAAYso17MhUm40oBCJVze2x4pswJhv9IFYohtR5G/fKkz2eosu3xeRflvGicS4JdclhTRgCGWDy10DV76FiXiS5N2clLXreHItWEXlZKZx6m9zAZoEX92VRnc4BY4jDsRR89Pl88hELaxiNipviyHS7XYZTRnkLM+nvtOcxkHSCbEs7oGw+AX+pLHoU5otNOqy+ZbXQ1cUvFOBYZmYdX3DiWaLfBKraakPkslJuU3yJu95X1qYmQTpOZDR4Ma/yf5fmWJh5D9ywnXxxd6RaupoO6HTtIl6gmsfcsyZNi5hRbbgPI3BiQwGYVGF6qzJpEOMzEyHyAuFeanhicc8b+P+DCwXni5sjM7ntKwShbCBP80KHSdoumORin3/PYgHCmHZVv71N0HNlPZnyVzZw="',
                        ]