Commit f95d9e0
fix: recognize /api/graphql path in proxy for GHES-style gh CLI
When gh CLI uses GH_HOST for proxy mode, it sends GraphQL requests to
/api/graphql (GHES-style) instead of /api/v3/graphql. The proxy only
recognized /graphql and /api/v3/graphql, causing the GraphQL POST to
fall through to passthrough which forwarded it to
https://api.github.com/api/graphql (404) instead of /graphql.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent c80f390 commit f95d9e0
2 files changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
| 173 | + | |
| 174 | + | |
173 | 175 | | |
174 | 176 | | |
175 | | - | |
| 177 | + | |
176 | 178 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
492 | 492 | | |
493 | 493 | | |
494 | 494 | | |
| 495 | + | |
| 496 | + | |
495 | 497 | | |
496 | 498 | | |
497 | 499 | | |
| |||
0 commit comments