1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-09 12:06:01 +01:00

Merge pull request #13684 from the-sun-will-rise-tomorrow/identity-compression

Recognize "identity" compression method
This commit is contained in:
Jörg Thalheim 2025-08-05 14:07:01 +02:00 committed by GitHub
commit 55ff55fefa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -221,7 +221,7 @@ std::string decompress(const std::string & method, std::string_view in)
std::unique_ptr<FinishSink> makeDecompressionSink(const std::string & method, Sink & nextSink) std::unique_ptr<FinishSink> makeDecompressionSink(const std::string & method, Sink & nextSink)
{ {
if (method == "none" || method == "") if (method == "none" || method == "" || method == "identity")
return std::make_unique<NoneSink>(nextSink); return std::make_unique<NoneSink>(nextSink);
else if (method == "br") else if (method == "br")
return std::make_unique<BrotliDecompressionSink>(nextSink); return std::make_unique<BrotliDecompressionSink>(nextSink);