mirror of
https://github.com/pomerium/pomerium.git
synced 2025-04-30 02:46:30 +02:00
add x-request-id in responses (#3366)
This commit is contained in:
parent
e624ad6331
commit
51e716ef54
2 changed files with 3 additions and 0 deletions
|
@ -441,6 +441,8 @@ func (b *Builder) buildMainHTTPConnectionManagerFilter(
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
tc := marshalAny(&envoy_http_connection_manager.HttpConnectionManager{
|
tc := marshalAny(&envoy_http_connection_manager.HttpConnectionManager{
|
||||||
|
AlwaysSetRequestIdInResponse: true,
|
||||||
|
|
||||||
CodecType: options.GetCodecType().ToEnvoy(),
|
CodecType: options.GetCodecType().ToEnvoy(),
|
||||||
StatPrefix: "ingress",
|
StatPrefix: "ingress",
|
||||||
RouteSpecifier: &envoy_http_connection_manager.HttpConnectionManager_RouteConfig{
|
RouteSpecifier: &envoy_http_connection_manager.HttpConnectionManager_RouteConfig{
|
||||||
|
|
|
@ -134,6 +134,7 @@ func Test_buildMainHTTPConnectionManagerFilter(t *testing.T) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}],
|
}],
|
||||||
|
"alwaysSetRequestIdInResponse": true,
|
||||||
"codecType": "HTTP1",
|
"codecType": "HTTP1",
|
||||||
"commonHttpProtocolOptions": {
|
"commonHttpProtocolOptions": {
|
||||||
"idleTimeout": "300s"
|
"idleTimeout": "300s"
|
||||||
|
|
Loading…
Add table
Reference in a new issue