forked from mirror/pixelfed
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;
|
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['Accept'] = 'application/activity+json';
|
||||||
|
$headers['User-Agent'] = '(Pixelfed/'.config('pixelfed.version').'; +'.config('app.url').')';
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$res = Http::withHeaders($headers)
|
$res = Http::withHeaders($headers)
|
||||||
|
|
Loading…
Reference in a new issue