mickem / nscp

NSClient++
http://nsclient.org
GNU General Public License v2.0
235 stars 91 forks source link

Add application/json in headers #752

Open MediaCenterRUV opened 2 years ago

MediaCenterRUV commented 2 years ago

Issue and Steps to Reproduce

Background: I'm trying a SCADA system called Cerebrum to poll data from nsclient via REST but Cerebrum is a bit stupid as if the headers don't include "application/json" I am unable to apply logic to the results in Cerebrum. I've of course mentioned that to the makers of Cerebrum but I'm not expecting an update anytime soon from them.

That's why I'm asking if it is possible to make NSClient deliver the correct mime type in the json reply headers?

Thank you.

Johannes Reykdal

PLEASE PROVIDE COMMAND HERE any checks using the REST api

Expected Behavior

headers should include the correct application mime-type

Actual Behavior

They dont include the application mime-type

Details

nsclient 5.2.35

Additional Details