-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When we do server-checks we naively assume that when requesting the r…
…esource, we'll get a 200 response only when the resource was accessible. But in actuallity it's normal for a 200 statusCode to be returned but it's actually an authentication page. I added an additional check to re-request the resource with an accept-header, and check the absence of a loginUrl field on the JSON response. If the response is not valid JSON this additional check is ignored, and the previously behavior is preserved.
- Loading branch information
Showing
2 changed files
with
40 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters