Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Conversation

@jcansdale
Copy link
Collaborator

@jcansdale jcansdale commented Oct 26, 2020

The X-GitHub-Request-Id header is used to check whether an error is returned from a GitHub or GitHub Enterprise server instance. If the server is behind a HAProxy, the header will be converted to lower case. We were only checking for a case sensitive X-GitHub-Request-Id header and not detecting GHES instances behind a HAProxy proxy.

What this PR does

  • Check any casing of the X-GitHub-Request-Id header

Credits

This bug was discovered and documented by @osmanager in #2560. Thankyou!

Related

Fixes #2560

@jcansdale jcansdale changed the title Fix detecting GitHub API Exception Fix detecting GitHub Enterprise Server behind a HAProxy Oct 26, 2020
@jcansdale jcansdale merged commit bccca13 into master Mar 18, 2021
@jcansdale jcansdale deleted the fixes/2560-IsGitHubApiException branch March 18, 2021 14:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Report Solution for GHE Connecting Bug

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.