mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-09 01:56:39 +02:00
refactor: drop usage of Debug::log (#4202)
* refactor: drop usage of Debug::log * lint
This commit is contained in:
@@ -275,11 +275,13 @@ class MastodonBridge extends BridgeAbstract
|
||||
$toSign = '(request-target): get ' . $matches[2] . "\nhost: " . $matches[1] . "\ndate: " . $date;
|
||||
$result = openssl_sign($toSign, $signature, $pkey, 'RSA-SHA256');
|
||||
if ($result) {
|
||||
Debug::log($toSign);
|
||||
$sig = 'Signature: keyId="' . $keyId . '",headers="(request-target) host date",signature="' .
|
||||
base64_encode($signature) . '"';
|
||||
Debug::log($sig);
|
||||
array_push($headers, $sig);
|
||||
$sig = sprintf(
|
||||
'Signature: keyId="%s",headers="(request-target) host date",signature="%s"',
|
||||
$keyId,
|
||||
base64_encode($signature)
|
||||
);
|
||||
|
||||
$headers[] = $sig;
|
||||
}
|
||||
}
|
||||
try {
|
||||
|
Reference in New Issue
Block a user