Fix signing headers

pull/6544/head
Daniel Supernault 4 weeks ago
parent c5868de7d6
commit dfd538e7e0
No known key found for this signature in database
GPG Key ID: 23740873EE6F76A1

@ -289,9 +289,9 @@ class UserAccountDelete extends Command
$requests = function () use ($client, $urls, $digest, $payload) {
foreach ($urls as $url) {
$headers = HttpSignature::instanceActorSignWithDigest($url, $digest, [
'Content-Type' => 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"',
]);
$headers = HttpSignature::instanceActorSignWithDigest($url, $digest);
$headers['Content-Type'] = 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"';
yield function () use ($client, $url, $headers, $payload) {
return $client->postAsync($url, [
@ -344,9 +344,9 @@ class UserAccountDelete extends Command
protected function sendDebug(string $url, string $payload, string $digest): int
{
$headers = HttpSignature::instanceActorSignWithDigest($url, $digest, [
'Content-Type' => 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"',
]);
$headers = HttpSignature::instanceActorSignWithDigest($url, $digest);
$headers['Content-Type'] = 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"';
$this->info('Target: '.$url);
$this->newLine();

Loading…
Cancel
Save