]> 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-org-access-app[bot] <120671045+asterisk-org-access-app[bot]@users.noreply.github.com>
Thu, 23 Jan 2025 14:22:14 +0000 (14:22 +0000)
commitb4601481631814688376f0300cccc7c853c134f4
tree34b08dd78484b359fb42b8681145460f901074bb
parent6384e8667c3b057a6edf324f58a6c00461c48eb8
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