mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-26 00:03:16 +00:00
Update HttpSignature
This commit is contained in:
parent
f17ca9d904
commit
9ffe5941d7
1 changed files with 7 additions and 1 deletions
|
@ -17,8 +17,14 @@ class ActivityPubFetchService
|
|||
return 0;
|
||||
}
|
||||
|
||||
$headers = HttpSignature::instanceActorSign($url, false);
|
||||
$baseHeaders = [
|
||||
'Accept' => 'application/activity+json',
|
||||
'User-Agent' => '(Pixelfed/'.config('pixelfed.version').'; +'.config('app.url').')'
|
||||
];
|
||||
|
||||
$headers = HttpSignature::instanceActorSign($url, false, $baseHeaders);
|
||||
$headers['Accept'] = 'application/activity+json';
|
||||
$headers['User-Agent'] = '(Pixelfed/'.config('pixelfed.version').'; +'.config('app.url').')';
|
||||
|
||||
try {
|
||||
$res = Http::withHeaders($headers)
|
||||
|
|
Loading…
Reference in a new issue