mirror of
https://github.com/pixelfed/pixelfed.git
synced 2025-01-11 22:50:45 +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);
|
$bodyDecoded = json_decode($body, true, 8);
|
||||||
$signature = $request->header('signature');
|
$signature = $request->header('signature');
|
||||||
$date = $request->header('date');
|
$date = $request->header('date');
|
||||||
|
$digest = $request->header('digest');
|
||||||
|
if(!$digest) {
|
||||||
|
abort(400, 'Missing digest header');
|
||||||
|
}
|
||||||
if(!$signature) {
|
if(!$signature) {
|
||||||
abort(400, 'Missing signature header');
|
abort(400, 'Missing signature header');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue