Skip to content

Commit 5eaff0e

Browse files
committed
change content type for /metrics
1 parent 98fb6af commit 5eaff0e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

routers/statistics.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ router.get('/metrics', limiter.create, async (req, res) => {
2424

2525
statistics.resolveWilmaResponsetime()
2626
.then(data => {
27-
return res.send(`
27+
return res.setHeader('Content-Type', 'text/plain; version=0.0.4; charset=utf-8').send(`
2828
# HELP wilma_response_time_ms Wilma's current response time
2929
# TYPE wilma_response_time_ms gauge
3030
wilma_response_time_ms ${data}

0 commit comments

Comments
 (0)