Skip to content

Commit

Permalink
Disabled unicode byte order mark for metrics endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusWichelmann committed May 20, 2021
1 parent 51bfeab commit 0f7b0f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SolarEdgeExporter/Prometheus/MetricsWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public MetricsWriter(ILogger<MetricsWriter> logger, DeviceService deviceService)

public async Task WriteToStreamAsync(Stream stream)
{
await using var streamWriter = new StreamWriter(stream, Encoding.UTF8, -1, true);
await using var streamWriter = new StreamWriter(stream, new UTF8Encoding(false), -1, true);

static IEnumerable<MetricsEntry> GetDeviceMetrics(IDevice device, int index)
=>
Expand Down

0 comments on commit 0f7b0f2

Please sign in to comment.