From 6c6f2569763439567e586ce21ff9926de97a9152 Mon Sep 17 00:00:00 2001 From: Imran Remtulla Date: Fri, 7 Mar 2025 16:15:01 -0500 Subject: [PATCH] GitLab bugfix (#2167) --- lib/app_sources/gitlab.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/app_sources/gitlab.dart b/lib/app_sources/gitlab.dart index 4f5c8c3..4c0cd2f 100644 --- a/lib/app_sources/gitlab.dart +++ b/lib/app_sources/gitlab.dart @@ -120,7 +120,7 @@ class GitLab extends AppSource { Map additionalSettings) async { String? PAT = await getPATIfAny(hostChanged ? additionalSettings : {}); String optionalAuth = (PAT != null) ? 'private_token=$PAT' : ''; - return '$apkUrl?$optionalAuth'; + return '$apkUrl${(Uri.parse(apkUrl).query.isEmpty ? '?' : '&')}$optionalAuth'; } @override