mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-07-23 09:29:41 +02:00
Use gitlab host defined in class member variable
This commit is contained in:
@@ -112,7 +112,7 @@ class GitLab extends AppSource {
|
|||||||
// Change headers to pacify, e.g. cloudflare protection
|
// Change headers to pacify, e.g. cloudflare protection
|
||||||
// Related to: (#1397, #1389, #1384, #1382, #1381, #1380, #1359, #854, #785, #697)
|
// Related to: (#1397, #1389, #1384, #1382, #1381, #1380, #1359, #854, #785, #697)
|
||||||
var headers = <String, String>{};
|
var headers = <String, String>{};
|
||||||
headers[HttpHeaders.refererHeader] = 'https://gitlab.com';
|
headers[HttpHeaders.refererHeader] = 'https://${hosts[0]}';
|
||||||
if (headers.isNotEmpty) {
|
if (headers.isNotEmpty) {
|
||||||
return headers;
|
return headers;
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user