Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
zirain committed May 9, 2024
1 parent 9d7ee93 commit e61611e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pilot/pkg/networking/core/route/route.go
Expand Up @@ -1155,13 +1155,13 @@ func translateHeaderMatch(name string, in *networking.StringMatch) *route.Header
return out
}

func forwardNotMatchingPreflights(cors *networking.CorsPolicy) *wrappers.BoolValue {
func forwardNotMatchingPreflights(cors *networking.CorsPolicy) *wrapperspb.BoolValue {
if cors.GetUnmatchedPreflights() == networking.CorsPolicy_IGNORE {
return wrappers.Bool(false)
return wrapperspb.Bool(false)
}

// This is the default behavior before envoy 1.30.
return wrappers.Bool(true)
return wrapperspb.Bool(true)
}

// TranslateCORSPolicy translates CORS policy
Expand Down

0 comments on commit e61611e

Please sign in to comment.