diff --git a/src/libexpr/primops.cc b/src/libexpr/primops.cc index a01af05e3..22925ba4d 100644 --- a/src/libexpr/primops.cc +++ b/src/libexpr/primops.cc @@ -1937,7 +1937,7 @@ void fetch(EvalState & state, const Pos & pos, Value * * args, Value & v, } else url = state.forceStringNoCtx(*args[0], pos); - if (state.restricted && !expectedHash) + if (state.restricted) throw Error(format("'%1%' is not allowed in restricted mode") % who); Path res = getDownloader()->downloadCached(state.store, url, unpack, name, expectedHash); diff --git a/src/libstore/globals.hh b/src/libstore/globals.hh index 880527322..538273b54 100644 --- a/src/libstore/globals.hh +++ b/src/libstore/globals.hh @@ -271,7 +271,7 @@ public: "Number of parallel HTTP connections.", {"binary-caches-parallel-connections"}}; - Setting enableHttp2{this, true, "enable-http2", + Setting enableHttp2{this, true, "http2", "Whether to enable HTTP/2 support."}; Setting tarballTtl{this, 60 * 60, "tarball-ttl",