Skip to content

Commit

Permalink
fix a minor issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Cypherspark committed Sep 7, 2023
1 parent c3ee41a commit 2accf41
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/auth/authenticator.go
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,9 @@ func (a *Authenticator) checkServiceUpstreamAuth(wsvc string, request *Request,
if err != nil {
return false, CerberusReasonUpstreamAuthFailed
}

if resp.StatusCode != http.StatusOK {
return false, CerberusReasonUnauthorized
}
var headersString string
for header, values := range resp.Header {
for _, value := range values {
Expand Down

0 comments on commit 2accf41

Please sign in to comment.