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();