Skip to content

Commit

Permalink
Return asap on unsupported compression method
Browse files Browse the repository at this point in the history
  • Loading branch information
g-bougard authored and trasher committed Oct 15, 2024
1 parent 80b2b31 commit 1f56413
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions front/inventory.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 1f56413

Please sign in to comment.