]> 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)
committerAsterisk Development Team <asteriskteam@digium.com>
Thu, 23 Jan 2025 18:42:29 +0000 (18:42 +0000)
commit38fb02351cb057945b2fe18440fc988e8b91f12f
treea6a616aedbbd311613bda483fbf4e2f129d69b2c
parent7a9d014644358df61255c5ca9697a7bc45f2a57a
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
(cherry picked from commit 2d958812ad3be76ae20bf147bda4a74b7d1d66c3)
res/res_prometheus.c