]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_prometheus.c: Set Content-Type header on /metrics response.
authorSean Bright <sean@seanbright.com>
Tue, 21 Jan 2025 23:37:54 +0000 (18:37 -0500)
committerSean Bright <sean@seanbright.com>
Thu, 23 Jan 2025 14:22:01 +0000 (14:22 +0000)
commitfa286641fb39b8aedab19127996d2c13afdb45b7
treeadef925692c8ded31fc5127b7bb846d9a611d04e
parentece2cfc7c182113b5b55415a0203cb8c69634162
res_prometheus.c: Set Content-Type header on /metrics response.

This should resolve the Prometheus error:

> Error scraping target: non-compliant scrape target
  sending blank Content-Type and no
  fallback_scrape_protocol specified for target.

Resolves: #1075
res/res_prometheus.c