From aca4f7dff0ee615164668e923deaf5cc96ab1c8a Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 18 Sep 2017 11:07:28 +0200 Subject: Don't remove Content-Encoding in fetchurl / nix-prefetch-url Fixes #1568. --- src/nix-prefetch-url/nix-prefetch-url.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/nix-prefetch-url/nix-prefetch-url.cc') diff --git a/src/nix-prefetch-url/nix-prefetch-url.cc b/src/nix-prefetch-url/nix-prefetch-url.cc index 791a1eeb53cb..7e62a033b458 100644 --- a/src/nix-prefetch-url/nix-prefetch-url.cc +++ b/src/nix-prefetch-url/nix-prefetch-url.cc @@ -158,7 +158,9 @@ int main(int argc, char * * argv) auto actualUri = resolveMirrorUri(state, uri); /* Download the file. */ - auto result = getDownloader()->download(DownloadRequest(actualUri)); + DownloadRequest req(actualUri); + req.decompress = false; + auto result = getDownloader()->download(req); AutoDelete tmpDir(createTempDir(), true); Path tmpFile = (Path) tmpDir + "/tmp"; -- cgit 1.4.1