Merge pull request #354 from laf/master

Removed check for image/png content-type
This commit is contained in:
Neil Lathwood
2014-11-29 14:37:19 +00:00
-7
View File
@@ -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("<h3>Not Acceptable</h3>\n");
echo("<p>Only media type 'image/png' is provided at present</p>\n");
return;
}
$router = $app->router()->getCurrentRoute()->getParams();
$group = $router['group'];
$vars = array();