Skip to content

Commit 4d53e81

Browse files
committed
Fix GHES hostname pattern
1 parent 89bb928 commit 4d53e81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/ghmcp/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ func parseAPIHost(s string) (apiHost, error) {
374374
return apiHost{}, fmt.Errorf("host must have a scheme (http or https): %s", s)
375375
}
376376

377-
if strings.HasSuffix(u.Hostname(), "github.com") {
377+
if u.Hostname() == "github.com" {
378378
return newDotcomHost()
379379
}
380380

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy