aboutsummaryrefslogtreecommitdiff
path: root/src/nix-prefetch-url/nix-prefetch-url.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-09-18 11:07:28 +0200
committerEelco Dolstra <edolstra@gmail.com>2017-09-18 11:07:28 +0200
commitaca4f7dff0ee615164668e923deaf5cc96ab1c8a (patch)
treeb15c70471ab332a1dbb86d3698e429179b8ba45c /src/nix-prefetch-url/nix-prefetch-url.cc
parent5324bb9399b87782227cc98d83bc3c2d55b102fa (diff)
Don't remove Content-Encoding in fetchurl / nix-prefetch-url
Fixes #1568.
Diffstat (limited to 'src/nix-prefetch-url/nix-prefetch-url.cc')
-rw-r--r--src/nix-prefetch-url/nix-prefetch-url.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nix-prefetch-url/nix-prefetch-url.cc b/src/nix-prefetch-url/nix-prefetch-url.cc
index 791a1eeb5..7e62a033b 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";