Skip to content

Commit

Permalink
Merge pull request #1372 from lou-lan/fix/gzip
Browse files Browse the repository at this point in the history
Fix gzip writer
  • Loading branch information
k8s-ci-robot committed Feb 15, 2021
2 parents bd8a776 + 483b77a commit 6522687
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/metricshandler/metrics_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ func (m *MetricsHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {

for _, s := range m.stores {
ms := s.(*metricsstore.MetricsStore)
ms.WriteAll(w)
ms.WriteAll(writer)
}

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

0 comments on commit 6522687

Please sign in to comment.