kutuluk / loglevel-plugin-remote

A loglevel plugin for sending browser logs to a server
MIT License
102 stars 36 forks source link

Overide Content-Type #23

Closed przemekwrona closed 5 years ago

przemekwrona commented 5 years ago

For some reason I send logs as json and due to this fact I change with awareness the configuration of headers and I set Content-Type: application/json, but in the request I see Content-Type: text/plain, application/json. From my point of view this behavior is incorrect, because I want to change configuration and I don not want add new Content-Type.

przemekwrona commented 5 years ago

If the format of message is json the Content-Type is application/json