Skip to content

Commit 114e474

Browse files
committed
#16 add Content-Type
1 parent 62b3440 commit 114e474

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Prometheus.Client.AspNetCore/PrometheusExtensions.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ public static IApplicationBuilder UsePrometheusServer(this IApplicationBuilder a
4242
coreapp.Run(async context =>
4343
{
4444
var response = context.Response;
45+
response.ContentType = "text/plain; version=0.0.4";
4546

4647
using (var outputStream = response.Body)
4748
{
@@ -70,4 +71,4 @@ private static void RegisterCollectors(PrometheusOptions options)
7071
options.CollectorRegistryInstance.RegisterOnDemandCollectors(options.Collectors);
7172
}
7273
}
73-
}
74+
}

0 commit comments

Comments
 (0)