Skip to content

Commit

Permalink
support docker registry 2.8.x version which not support auto redirect…
Browse files Browse the repository at this point in the history
… path (#397)
  • Loading branch information
docooler authored Dec 31, 2024
1 parent f4cfe8e commit 48e07e9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions auth_server/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,8 @@ func (as *AuthServer) ServeHTTP(rw http.ResponseWriter, req *http.Request) {
as.doIndex(rw, req)
case req.URL.Path == path_prefix+"/auth":
as.doAuth(rw, req)
case req.URL.Path == path_prefix+"/auth/token":
as.doAuth(rw, req)
case req.URL.Path == path_prefix+"/google_auth" && as.ga != nil:
as.ga.DoGoogleAuth(rw, req)
case req.URL.Path == path_prefix+"/github_auth" && as.gha != nil:
Expand Down

0 comments on commit 48e07e9

Please sign in to comment.