Skip to content

Commit eb31621

Browse files
committed
[gateway/xds] Allow underscores in HTTP headers
1 parent a6a4c53 commit eb31621

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/gateway/xds/translator/listener.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,9 @@ func (t *Translator) addXdsHTTPFilterChain(xdsListener *listenerv3.Listener, irL
232232
MergeSlashes: irListener.Path.MergeSlashes,
233233
PathWithEscapedSlashesAction: translateEscapePath(irListener.Path.EscapedSlashesAction),
234234
CommonHttpProtocolOptions: &corev3.HttpProtocolOptions{
235-
HeadersWithUnderscoresAction: corev3.HttpProtocolOptions_REJECT_REQUEST,
235+
// Envoy's default is ALLOW. This is also consistent with most
236+
// CDN proxies.
237+
HeadersWithUnderscoresAction: corev3.HttpProtocolOptions_ALLOW,
236238
},
237239
GenerateRequestId: &wrappers.BoolValue{Value: hcmTracing != nil},
238240
Tracing: hcmTracing,

0 commit comments

Comments
 (0)