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.
1 parent 62b3440 commit 114e474Copy full SHA for 114e474
src/Prometheus.Client.AspNetCore/PrometheusExtensions.cs
@@ -42,6 +42,7 @@ public static IApplicationBuilder UsePrometheusServer(this IApplicationBuilder a
42
coreapp.Run(async context =>
43
{
44
var response = context.Response;
45
+ response.ContentType = "text/plain; version=0.0.4";
46
47
using (var outputStream = response.Body)
48
@@ -70,4 +71,4 @@ private static void RegisterCollectors(PrometheusOptions options)
70
71
options.CollectorRegistryInstance.RegisterOnDemandCollectors(options.Collectors);
72
}
73
-}
74
+}
0 commit comments