Update controller

This commit is contained in:
Daniel Supernault 2019-12-14 13:02:24 -07:00
parent 295e80eb72
commit 47c132c622
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -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');
}