From cf8bd72b13cb3322c62477f33f5927647758866a Mon Sep 17 00:00:00 2001 From: Sergei Zharinov Date: Fri, 30 Apr 2021 13:26:51 +0400 Subject: [PATCH] feat(maven): Obtain "last-modified" timestamps for GitLab (#9791) --- lib/datasource/maven/util.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/datasource/maven/util.ts b/lib/datasource/maven/util.ts index 464d2709fd31ac..f1e1f415c7d8b5 100644 --- a/lib/datasource/maven/util.ts +++ b/lib/datasource/maven/util.ts @@ -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; }