diff options
Diffstat (limited to 'src/libfetchers/tarball.cc')
-rw-r--r-- | src/libfetchers/tarball.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libfetchers/tarball.cc b/src/libfetchers/tarball.cc index b4b7725a0..20c1e1093 100644 --- a/src/libfetchers/tarball.cc +++ b/src/libfetchers/tarball.cc @@ -202,10 +202,10 @@ struct TarballInputScheme : InputScheme // NAR hashes are preferred over file hashes since tar/zip files // don't have a canonical representation. if (auto narHash = input.getNarHash()) - url.query.insert_or_assign("narHash", narHash->to_string(SRI)); + url.query.insert_or_assign("narHash", narHash->to_string(SRI, true)); /* else if (auto hash = maybeGetStrAttr(input.attrs, "hash")) - url.query.insert_or_assign("hash", Hash(*hash).to_string(SRI)); + url.query.insert_or_assign("hash", Hash(*hash).to_string(SRI, true)); */ return url; } |