pomerium/pkg/grpc/config/config.go
Kenneth Jenkins fd84075af1
config: remove set_authorization_header option (#4489)
Remove the deprecated set_authorization_header option entirely. Add an
entry to the removedConfigFields map with a link to the relevant
Upgrading page section.
2023-08-29 09:02:08 -07:00

18 lines
458 B
Go

// Package config contains protobuf definitions for config.
package config
// IsSet returns true if one of the route redirect options has been chosen.
func (rr *RouteRedirect) IsSet() bool {
if rr == nil {
return false
}
return rr.StripQuery != nil ||
rr.ResponseCode != nil ||
rr.PrefixRewrite != nil ||
rr.PathRedirect != nil ||
rr.PortRedirect != nil ||
rr.HostRedirect != nil ||
rr.SchemeRedirect != nil ||
rr.HttpsRedirect != nil
}