Skip to content

Commit 0a1b701

Browse files
committed
add nolint for GetEffectiveHostAndScheme
1 parent 370ebca commit 0a1b701

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/http/oauth/oauth.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ func (h *AuthHandler) GetProtectedResourceData(r *http.Request, resourcePath str
185185
// GetEffectiveHostAndScheme returns the effective host and scheme for a request.
186186
// It checks X-Forwarded-Host and X-Forwarded-Proto headers first (set by proxies),
187187
// then falls back to the request's Host and TLS state.
188-
func GetEffectiveHostAndScheme(r *http.Request, cfg *Config) (host, scheme string) {
188+
func GetEffectiveHostAndScheme(r *http.Request, cfg *Config) (host, scheme string) { //nolint:revive // parameters are required by http.oauth.BuildResourceMetadataURL signature
189189
// Check for forwarded headers first (typically set by reverse proxies)
190190
if forwardedHost := r.Header.Get(headers.ForwardedHostHeader); forwardedHost != "" {
191191
host = forwardedHost

0 commit comments

Comments
 (0)