aboutsummaryrefslogtreecommitdiff
path: root/src/nix/prefetch.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/nix/prefetch.cc')
-rw-r--r--src/nix/prefetch.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix/prefetch.cc b/src/nix/prefetch.cc
index 2457e4cc8..cad70e726 100644
--- a/src/nix/prefetch.cc
+++ b/src/nix/prefetch.cc
@@ -98,7 +98,7 @@ std::tuple<StorePath, Hash> prefetchFile(
FdSink sink(fd.get());
FileTransferRequest req(url);
- getFileTransfer()->download(std::move(req), sink);
+ getFileTransfer()->download(std::move(req))->drainInto(sink);
}
/* Optionally unpack the file. */