From 47c132c622b99ee6798b54638db374ba514b3a71 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sat, 14 Dec 2019 13:02:24 -0700 Subject: [PATCH] Update controller --- app/Http/Controllers/FederationController.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/Http/Controllers/FederationController.php b/app/Http/Controllers/FederationController.php index eaaa1f583..581960975 100644 --- a/app/Http/Controllers/FederationController.php +++ b/app/Http/Controllers/FederationController.php @@ -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'); }