splunk / splunk-javascript-logging

Splunk HTTP Event Collector logging interface for JavaScript
http://dev.splunk.com/view/splunk-logging-javascript/SP-CAAAE63
Apache License 2.0
85 stars 47 forks source link

Add support for setting Content-Type header #72

Closed davidbaskin33 closed 2 years ago

davidbaskin33 commented 2 years ago

We'd like to use this library to send logs to the Splunk Log Observer framework. This requires setting a Content-Type header of application/json, instead of application/x-www-form-urlencoded. This PR should add support for us to set that via config