We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Content-Type
1 parent d9aa856 commit 9013feaCopy full SHA for 9013fea
src/shadowbox/server/main.ts
@@ -48,6 +48,7 @@ const MMDB_LOCATION_ASN = '/var/lib/libmaxminddb/ip-asn.mmdb';
48
async function exportPrometheusMetrics(registry: prometheus.Registry, port): Promise<http.Server> {
49
return new Promise<http.Server>((resolve, _) => {
50
const server = http.createServer((_, res) => {
51
+ res.setHeader('Content-Type', registry.contentType);
52
res.write(registry.metrics());
53
res.end();
54
});
0 commit comments