]> 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:21:59 +0000 (14:21 +0000)
commit2d958812ad3be76ae20bf147bda4a74b7d1d66c3
treef68bfdef1ab4c71617597dffd7935b256cd0b070
parentd52cd705d3f25f8492a6fc746af0152a391b09ff
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