mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-14 15:24:52 +09:00
Move exposition content type to its own var
Remove anti-pattern of setting properties on Function object that is difficult to document.
This commit is contained in:
1 parent
80e1904175
commit
b66138587b
2 files changed
+6
-5
No files matched your search
@@ -95,7 +95,7 @@ async function getMetrics(req: Request, res: Response, next: any) {
|
||||
// Should wrap results into a Generator functions ?
|
||||
// @ts-ignore
|
||||
let text = await lib.exposition(results);
|
||||
res.set("Content-Type", lib.exposition.contentType);
|
||||
res.set("Content-Type", lib.expositionContentType);
|
||||
res.send(text);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user