fix: revert followRedirectTransport, remove incorrect /github prefix prepend
Build and Push to GHCR / build-and-push (push) Has been cancelled

- followRedirectTransport used http.Client.Do which conflicts with
  ReverseProxy's RequestURI setting → "Request.RequestURI can't be set"
- The auth proxy github case was incorrectly prepending /github to paths
  like /arkylin, causing /github/arkylin to be forwarded to GitHub.
  Just pass the path through directly.

via [HAPI](https://hapi.run)

Co-Authored-By: HAPI <[email protected]>
This commit is contained in:
Agent
2026-05-25 00:19:25 +08:00
co-authored by HAPI
parent 82ba0ff2d5
commit 7f6b770403
2 changed files with 6 additions and 22 deletions
+1 -1
View File
@@ -178,7 +178,7 @@ func buildHandler(cfg *config.Config) (*admin.Handler, http.Handler) {
}
ghcrProxy.ServeHTTP(w, r)
case "github":
middleware.StripPrefix("/github", githubProxy).ServeHTTP(w, r)
githubProxy.ServeHTTP(w, r)
default:
dockerProxy.ServeHTTP(w, r)
}