Use gitlab host defined in class member variable

This commit is contained in:
Achim
2024-02-26 13:42:56 +01:00
parent 9083e28637
commit ef3b01ac56

View File

@ -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 = <String, String>{};
headers[HttpHeaders.refererHeader] = 'https://gitlab.com';
headers[HttpHeaders.refererHeader] = 'https://${hosts[0]}';
if (headers.isNotEmpty) {
return headers;
} else {