Skip to content

Commit 8ae133f

Browse files
committed
Merge branch 'dev' (0.8.1-1)
2 parents 0c41ae2 + b3db68e commit 8ae133f

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
- 0.8.1-1 (2025-04-23):
2+
+ Fixed double response compression in the '/metrics' endpoint.
3+
14
- 0.8.0-1 (2025-04-22):
25
+ Added basic support for MCP (Model Context Protocol) in the API, enabling queries to varnishmon using LLMs.
36
+ Updated dependencies.

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ SHELL := /bin/bash
33
ROOT := $(abspath $(dir $(lastword $(MAKEFILE_LIST))))
44
UMASK := 022
55

6-
VERSION := 0.8.0
6+
VERSION := 0.8.1
77
ITERATION := 1
88
REVISION := $(shell cd '$(ROOT)' && git rev-parse --short HEAD)
99
ENVIRONMENT ?= production

pkg/workers/api/handlers.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,9 @@ func (h *Handler) Shutdown() error {
168168
}
169169

170170
func (h *Handler) handleMetricsRequest(c *gin.Context) {
171+
// Compression is explicitly disabled here to avoid double compression by
172+
// the 'gzip' middleware.
171173
promhttp.HandlerFor(
172174
h.app.Cfg().Metrics().Registry,
173-
promhttp.HandlerOpts{}).ServeHTTP(c.Writer, c.Request)
175+
promhttp.HandlerOpts{DisableCompression: true}).ServeHTTP(c.Writer, c.Request)
174176
}

0 commit comments

Comments
 (0)