mirror of
https://github.com/OutlineFoundation/outline-server.git
synced 2026-05-13 05:52:04 +00:00
chore(server): set Content-Type header (#1651)
This commit is contained in:
parent
d9aa8560ce
commit
9013feafa7
1 changed files with 1 additions and 0 deletions
|
|
@ -48,6 +48,7 @@ const MMDB_LOCATION_ASN = '/var/lib/libmaxminddb/ip-asn.mmdb';
|
|||
async function exportPrometheusMetrics(registry: prometheus.Registry, port): Promise<http.Server> {
|
||||
return new Promise<http.Server>((resolve, _) => {
|
||||
const server = http.createServer((_, res) => {
|
||||
res.setHeader('Content-Type', registry.contentType);
|
||||
res.write(registry.metrics());
|
||||
res.end();
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue