Skip to content

Commit 48e07e9

Browse files
authored
support docker registry 2.8.x version which not support auto redirect path (#397)
1 parent f4cfe8e commit 48e07e9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

auth_server/server/server.go

+2
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,8 @@ func (as *AuthServer) ServeHTTP(rw http.ResponseWriter, req *http.Request) {
436436
as.doIndex(rw, req)
437437
case req.URL.Path == path_prefix+"/auth":
438438
as.doAuth(rw, req)
439+
case req.URL.Path == path_prefix+"/auth/token":
440+
as.doAuth(rw, req)
439441
case req.URL.Path == path_prefix+"/google_auth" && as.ga != nil:
440442
as.ga.DoGoogleAuth(rw, req)
441443
case req.URL.Path == path_prefix+"/github_auth" && as.gha != nil:

0 commit comments

Comments
 (0)