fix: GitLab loop on misconfigured source

This commit is contained in:
Andras Bacsai
2022-07-12 10:19:34 +02:00
parent 8f9462245a
commit 9b47de71fc
2 changed files with 18 additions and 4 deletions

View File

@@ -78,7 +78,7 @@ async function send({
return {};
}
if (!response.ok) {
if (response.status === 401 && !path.startsWith('https://api.github')) {
if (response.status === 401 && !path.startsWith('https://api.github') && !path.includes('/v4/user')) {
Cookies.remove('token');
}