libfetchers: set free gitlab headers

This commit is contained in:
Finn Behrens 2021-11-14 12:23:46 +01:00
parent bceda30498
commit 79d07d0980

View file

@ -300,7 +300,7 @@ struct GitLabInputScheme : GitArchiveInputScheme
if ("PAT" == token.substr(0, fldsplit)) if ("PAT" == token.substr(0, fldsplit))
return std::make_pair("Private-token", token.substr(fldsplit+1)); return std::make_pair("Private-token", token.substr(fldsplit+1));
warn("Unrecognized GitLab token type %s", token.substr(0, fldsplit)); warn("Unrecognized GitLab token type %s", token.substr(0, fldsplit));
return std::nullopt; return std::make_pair(token.substr(0,fldsplit), token.substr(fldsplit+1));
} }
Hash getRevFromRef(nix::ref<Store> store, const Input & input) const override Hash getRevFromRef(nix::ref<Store> store, const Input & input) const override