From 0a96b7e62713a53eb9f4bd4c67a78c52bd3b42c7 Mon Sep 17 00:00:00 2001 From: WxNzEMof <143541718+WxNzEMof@users.noreply.github.com> Date: Mon, 4 Aug 2025 17:00:38 +0000 Subject: [PATCH] Recognize "identity" compression method Some binary caches (incorrectly) use this header to indicate lack of compression, inspired by the valid "identity" token in the "Accept-Encoding" header. --- src/libutil/compression.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libutil/compression.cc b/src/libutil/compression.cc index 0e38620d4..78219b7bc 100644 --- a/src/libutil/compression.cc +++ b/src/libutil/compression.cc @@ -215,7 +215,7 @@ std::string decompress(const std::string & method, std::string_view in) std::unique_ptr makeDecompressionSink(const std::string & method, Sink & nextSink) { - if (method == "none" || method == "") + if (method == "none" || method == "" || method == "identity") return std::make_unique(nextSink); else if (method == "br") return std::make_unique(nextSink);