diff --git a/src/shadowbox/server/main.ts b/src/shadowbox/server/main.ts index 8f52c18d..533f9f43 100644 --- a/src/shadowbox/server/main.ts +++ b/src/shadowbox/server/main.ts @@ -48,6 +48,7 @@ const MMDB_LOCATION_ASN = '/var/lib/libmaxminddb/ip-asn.mmdb'; async function exportPrometheusMetrics(registry: prometheus.Registry, port): Promise { return new Promise((resolve, _) => { const server = http.createServer((_, res) => { + res.setHeader('Content-Type', registry.contentType); res.write(registry.metrics()); res.end(); });