Skip to content

Commit 2ae50e5

Browse files
mruegbwplotka
andauthored
Update prometheus/promhttp/http.go
Co-authored-by: Bartlomiej Plotka <[email protected]> Signed-off-by: Manuel Rüger <[email protected]>
1 parent 052b28d commit 2ae50e5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

prometheus/promhttp/http.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -364,10 +364,10 @@ type HandlerOpts struct {
364364
// by the client and the OfferedCompressions field is ignored.
365365
DisableCompression bool
366366
// OfferedCompressions is a set of encodings (compressions) handler will
367-
// try to offer when negotiating with the client. This defaults to zstd,
368-
// gzip and identity.
369-
// NOTE: If handler can't agree on the encodings with the client or
370-
// caller using unsupported or empty encodings in OfferedCompressions,
367+
// try to offer when negotiating with the client. This defaults to identity, gzip
368+
// and zstd.
369+
// NOTE: If handler can't agree with the client on the encodings or
370+
// unsupported or empty encodings are set in OfferedCompressions,
371371
// handler always fallbacks to no compression (identity), for
372372
// compatibility reasons. In such cases ErrorLog will be used if set.
373373
OfferedCompressions []Compression

0 commit comments

Comments
 (0)