mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[bugfix] Let prometheus client do its own compression handling (#3232)
This commit is contained in:
@ -30,9 +30,13 @@ type Module struct {
|
||||
}
|
||||
|
||||
func New() *Module {
|
||||
// Use our own gzip handler.
|
||||
// Let prometheus use "identity", ie., no compression,
|
||||
// or "gzip", to match our own gzip compression middleware.
|
||||
opts := promhttp.HandlerOpts{
|
||||
DisableCompression: true,
|
||||
OfferedCompressions: []promhttp.Compression{
|
||||
promhttp.Identity,
|
||||
promhttp.Gzip,
|
||||
},
|
||||
}
|
||||
|
||||
// Instrument handler itself.
|
||||
|
Reference in New Issue
Block a user