Update oauthproxy.go (#2189)

Minor - spelling typos in comment
This commit is contained in:
Ronald Petty 2023-08-22 09:25:30 -07:00 committed by GitHub
parent a84e9f4d26
commit 8c60b64cf4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -299,7 +299,7 @@ func (p *OAuthProxy) buildServeMux(proxyPrefix string) {
// The authonly path should be registered separately to prevent it from getting no-cache headers.
// We do this to allow users to have a short cache (via nginx) of the response to reduce the
// likelihood of multiple reuests trying to referesh sessions simultaneously.
// likelihood of multiple requests trying to refresh sessions simultaneously.
r.Path(proxyPrefix + authOnlyPath).Handler(p.sessionChain.ThenFunc(p.AuthOnly))
// This will register all of the paths under the proxy prefix, except the auth only path so that no cache headers