Skip to content
Snippets Groups Projects
Unverified Commit cf8bd72b authored by Sergei Zharinov's avatar Sergei Zharinov Committed by GitHub
Browse files

feat(maven): Obtain "last-modified" timestamps for GitLab (#9791)

parent 6ad1a331
No related branches found
No related tags found
No related merge requests found
......@@ -116,7 +116,7 @@ export async function isHttpResourceExists(
const httpClient = httpByHostType(hostType);
const res = await httpClient.head(pkgUrl.toString());
const pkgUrlHost = url.parse(pkgUrl.toString()).host;
if (pkgUrlHost === 'repo.maven.apache.org') {
if (['repo.maven.apache.org', 'gitlab.com'].includes(pkgUrlHost)) {
const timestamp = res?.headers?.['last-modified'] as string;
return timestamp || true;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment