mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-24 14:03:16 +00:00
Update controller
This commit is contained in:
parent
295e80eb72
commit
47c132c622
1 changed files with 4 additions and 0 deletions
|
@ -214,6 +214,10 @@ class FederationController extends Controller
|
|||
$bodyDecoded = json_decode($body, true, 8);
|
||||
$signature = $request->header('signature');
|
||||
$date = $request->header('date');
|
||||
$digest = $request->header('digest');
|
||||
if(!$digest) {
|
||||
abort(400, 'Missing digest header');
|
||||
}
|
||||
if(!$signature) {
|
||||
abort(400, 'Missing signature header');
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue