We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46bef76 commit 368f6ffCopy full SHA for 368f6ff
exp/api/remote/remote_api.go
@@ -452,8 +452,6 @@ func WithWriteHandlerMiddlewares(middlewares ...func(http.Handler) http.Handler)
452
// This protects against maliciously crafted payloads that could cause excessive memory
453
// allocation and potentially lead to out-of-memory (OOM) conditions.
454
// All usual payloads should be much smaller than this limit and pass without any problems.
455
-//
456
-// See more in https://github.com/prometheus/client_golang/pull/1917
457
const maxDecodedSize = 32 * 1024 * 1024
458
459
// SnappyDecodeMiddleware returns a middleware that checks if the request body is snappy-encoded and decompresses it.
0 commit comments