Skip to content

Commit

Permalink
Use gitlab host defined in class member variable
Browse files Browse the repository at this point in the history
  • Loading branch information
akramer-zibra committed Feb 26, 2024
1 parent 9083e28 commit ef3b01a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/app_sources/gitlab.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit ef3b01a

Please sign in to comment.