From 1f564134fccc13eab99be3abd71bdd9c11b19aab Mon Sep 17 00:00:00 2001 From: Guillaume Bougard Date: Tue, 15 Oct 2024 10:57:37 +0200 Subject: [PATCH] Return asap on unsupported compression method --- front/inventory.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/front/inventory.php b/front/inventory.php index 22203936481..4c550682207 100644 --- a/front/inventory.php +++ b/front/inventory.php @@ -48,6 +48,10 @@ } $inventory_request = new Request(); +if ($inventory_request->inError() && $inventory_request->getHttpResponseCode() == 415) { + http_response_code($inventory_request->getHttpResponseCode()); + die("Unsupported compression"); +} $inventory_request->handleHeaders(); $refused = new RefusedEquipment();