From ef3b01ac56871cf6cccc66781c90355017a99bbe Mon Sep 17 00:00:00 2001 From: Achim Date: Mon, 26 Feb 2024 13:42:56 +0100 Subject: [PATCH] Use gitlab host defined in class member variable --- 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 d661a004..8edf3594 100644 --- a/lib/app_sources/gitlab.dart +++ b/lib/app_sources/gitlab.dart @@ -112,7 +112,7 @@ class GitLab extends AppSource { // Change headers to pacify, e.g. cloudflare protection // Related to: (#1397, #1389, #1384, #1382, #1381, #1380, #1359, #854, #785, #697) var headers = {}; - headers[HttpHeaders.refererHeader] = 'https://gitlab.com'; + headers[HttpHeaders.refererHeader] = 'https://${hosts[0]}'; if (headers.isNotEmpty) { return headers; } else {