librenms/librenms — pull request #354 by laf (2014-11-29 14:30:22+00:00)
Title: Removed check for image/png content-type

14:08 blahdeblah: Quick question about the portgroups api route, you added a check for image/png
14:09 I'm not sure that's what that function is meant for. Event sending -H "Accept: image/png" on a curl request fails. I think this is for checking if you send an image to the api rather than what's to be output
14:27 Sending -H "Content-type: image/png" works but this for defining what content-type the request will send.
14:29 I think the curl request needs to send an Accept and then the API check for this, I'll put a PR through to remove the current code until it can be looked at in more detail.