| ifstrings.HasSuffix(u.Hostname(), "github.com") { |
| returnnewDotcomHost() |
| } |
It's possible for a Github Enterprise server to end in github.com, i.e. mycompanygithub.com, so any requests will still forward to api.github.com even if that's not the right hostname.
github-mcp-server/pkg/utils/api.go
Lines 213 to 215 in bbc675a
It's possible for a Github Enterprise server to end in
github.com, i.e.mycompanygithub.com, so any requests will still forward to api.github.com even if that's not the right hostname.