Skip to content

Commit

Permalink
feat(maven): Obtain "last-modified" timestamps for GitLab (#9791)
Browse files Browse the repository at this point in the history
  • Loading branch information
zharinov committed Apr 30, 2021
1 parent 6ad1a33 commit cf8bd72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/datasource/maven/util.ts
Expand Up @@ -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;
}
Expand Down

0 comments on commit cf8bd72

Please sign in to comment.