perf(network): enable gzip on the metadata transport

This commit is contained in:
zarzet
2026-07-14 09:09:25 +07:00
parent 122b16133a
commit 034b505d15
+3 -1
View File
@@ -123,7 +123,9 @@ var metadataTransport = &http.Transport{
ForceAttemptHTTP2: true,
WriteBufferSize: 32 * 1024,
ReadBufferSize: 32 * 1024,
DisableCompression: true,
// Metadata responses are JSON; transparent gzip cuts transfer size several
// times over. Downloads stay on sharedTransport with compression disabled.
DisableCompression: false,
TLSClientConfig: newTLSCompatibilityConfig(false),
}