- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for isAuthorityHeader (0.14 sec)
-
pkg/config/validation/virtualservice.go
for k, v := range headers.GetRequest().GetSet() { if !isAuthorityHeader(k) { continue } if current != "" { return fmt.Errorf("authority header cannot be set multiple times: have %q, attempting to set %q", current, v) } current = v } for k, v := range headers.GetRequest().GetAdd() { if !isAuthorityHeader(k) { continue } if current != "" {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jun 12 04:03:27 UTC 2024 - 9.3K bytes - Viewed (0) -
pilot/pkg/networking/core/route/route.go
func isInternalHeader(headerKey string) bool { return strings.HasPrefix(headerKey, ":") || strings.EqualFold(headerKey, "host") } // isAuthorityHeader returns true if a header refers to the authority header func isAuthorityHeader(headerKey string) bool { return strings.EqualFold(headerKey, ":authority") || strings.EqualFold(headerKey, "host") } func dropInternal(keys []string) []string {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 14 14:12:39 UTC 2024 - 56.1K bytes - Viewed (0) -
pkg/config/validation/validation.go
func ValidateHTTPHeaderWithAuthorityOperationName(name string) error { if name == "" { return fmt.Errorf("header name cannot be empty") } // Authority header is validated later if isInternalHeader(name) && !isAuthorityHeader(name) { return fmt.Errorf(`invalid header %q: header cannot have ":" prefix`, name) } return nil }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jun 12 04:03:33 UTC 2024 - 107.2K bytes - Viewed (0)