1
0
Fork 0

Bail out of the normal 401 handling routine when the origin is GitHub

pull/2577/head
Chris Smith 2014-01-10 16:06:29 +00:00
parent 0238aaf5ac
commit 23d35204cd
1 changed files with 5 additions and 0 deletions

View File

@ -247,6 +247,11 @@ class RemoteFilesystem
throw new TransportException($message, 401);
}
// GitHub requests bail out early to allow 2FA to be applied if requested.
if ('github.com' === $this->originUrl) {
throw new TransportException('The "'.$this->fileUrl.'" file could not be downloaded ('.trim($message).')', 401);
}
$this->promptAuthAndRetry();
break;
}