This commit is contained in:
Eelco Dolstra 2020-09-30 12:09:18 +02:00
parent 002ce8449d
commit 274357eb6a

View file

@ -15,9 +15,6 @@ struct DownloadUrl
{
std::string url;
Headers headers;
DownloadUrl(const std::string & url, const Headers & headers)
: url(url), headers(headers) { }
};
// A github or gitlab host
@ -254,7 +251,7 @@ struct GitHubInputScheme : GitArchiveInputScheme
input.getRev()->to_string(Base16, false));
Headers headers = makeHeadersWithAuthTokens(host);
return DownloadUrl(url, headers);
return DownloadUrl { url, headers };
}
void clone(const Input & input, const Path & destDir) override
@ -320,7 +317,7 @@ struct GitLabInputScheme : GitArchiveInputScheme
input.getRev()->to_string(Base16, false));
Headers headers = makeHeadersWithAuthTokens(host);
return DownloadUrl(url, headers);
return DownloadUrl { url, headers };
}
void clone(const Input & input, const Path & destDir) override