mirror of
https://github.com/NixOS/nix
synced 2025-06-25 06:31:14 +02:00
Don't remove Content-Encoding in fetchurl / nix-prefetch-url
Fixes #1568.
This commit is contained in:
parent
5324bb9399
commit
aca4f7dff0
4 changed files with 7 additions and 2 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue