diff --git a/html/includes/api_functions.inc.php b/html/includes/api_functions.inc.php index 2b12d4a374..607c4cacd0 100644 --- a/html/includes/api_functions.inc.php +++ b/html/includes/api_functions.inc.php @@ -380,13 +380,6 @@ function list_bgp() { function get_graph_by_portgroup() { global $config; $app = \Slim\Slim::getInstance(); - if ($app->request->getMediaType() != "image/png") { - // we only support PNG graphs at the moment - $app->response->setStatus(406); // Not Acceptable - echo("
Only media type 'image/png' is provided at present
\n"); - return; - } $router = $app->router()->getCurrentRoute()->getParams(); $group = $router['group']; $vars = array();