digitalocean / prometheus-client-c

A Prometheus Client in C
Other
160 stars 79 forks source link

Add Content-Type header to promhttp #57

Open dsmeytis opened 3 years ago

dsmeytis commented 3 years ago

Hello, Monitoring service (i.e. DataDog) gives an error in attempt to gather metrics exposed by promhttp because it doesn't put any Content-Type header into HTTP response. This small change includes Content-Type text/plain to the responses in order to fix this problem. Thanks for your attention.

xmcqueen commented 3 years ago

Looks good to me.