Skip to content

Commit aebe410

Browse files
committed
fix: Use correct writer
Signed-off-by: Manuel Rüger <[email protected]>
1 parent 6eadca8 commit aebe410

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/metricshandler/metrics_handler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ func (m *MetricsHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
216216

217217
// If we send openmetrics, we need to include a EOF directive
218218
if contentType == expfmt.FmtOpenMetrics {
219-
w.Write([]byte("# EOF\n"))
219+
writer.Write([]byte("# EOF\n"))
220220
}
221221

222222
// In case we gzipped the response, we have to close the writer.

0 commit comments

Comments
 (0)