mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-12 16:06:25 +02:00
Merge pull request #354 from laf/master
Removed check for image/png content-type
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user