GitHub search bugfix (#1705)

This commit is contained in:
Imran Remtulla
2024-07-14 20:42:20 -04:00
parent 6a44fe227c
commit fbd6189721

View File

@ -171,7 +171,7 @@ class GitHub extends AppSource {
{bool forAPKDownload = false}) async {
var token = await getTokenIfAny(additionalSettings);
var headers = <String, String>{};
if (token != null) {
if (token != null && token.isNotEmpty) {
headers[HttpHeaders.authorizationHeader] = 'Token $token';
}
if (forAPKDownload == true) {