@@ -1339,78 +1339,6 @@ TEST_P(HeaderIntegrationTest, PathWithEscapedSlashesRedirected) {
1339
1339
});
1340
1340
}
1341
1341
1342
- // Validates legacy TE handling: TE header is forwarded if it contains a supported value
1343
- TEST_P (HeaderIntegrationTest, TestTeHeaderPassthrough) {
1344
- config_helper_.addRuntimeOverride (" envoy.reloadable_features.sanitize_te" , " false" );
1345
- initializeFilter (HeaderMode::Append, false );
1346
- performRequest (
1347
- Http::TestRequestHeaderMapImpl{
1348
- {" :method" , " GET" },
1349
- {" :path" , " /" },
1350
- {" :scheme" , " http" },
1351
- {" :authority" , " no-headers.com" },
1352
- {" x-request-foo" , " downstram" },
1353
- {" connection" , " te, close" },
1354
- {" te" , " trailers" },
1355
- },
1356
- Http::TestRequestHeaderMapImpl{
1357
- {" :authority" , " no-headers.com" },
1358
- {" :path" , " /" },
1359
- {" :method" , " GET" },
1360
- {" x-request-foo" , " downstram" },
1361
- {" te" , " trailers" },
1362
- },
1363
- Http::TestResponseHeaderMapImpl{
1364
- {" server" , " envoy" },
1365
- {" content-length" , " 0" },
1366
- {" :status" , " 200" },
1367
- {" x-return-foo" , " upstream" },
1368
- },
1369
- Http::TestResponseHeaderMapImpl{
1370
- {" server" , " envoy" },
1371
- {" x-return-foo" , " upstream" },
1372
- {" :status" , " 200" },
1373
- {" connection" , " close" },
1374
- });
1375
- }
1376
-
1377
- // Validates legacy TE handling: that TE header stripped if it contains an unsupported value.
1378
- TEST_P (HeaderIntegrationTest, TestTeHeaderSanitized) {
1379
- config_helper_.addRuntimeOverride (" envoy.reloadable_features.sanitize_te" , " false" );
1380
- initializeFilter (HeaderMode::Append, false );
1381
- performRequest (
1382
- Http::TestRequestHeaderMapImpl{
1383
- {" :method" , " GET" },
1384
- {" :path" , " /" },
1385
- {" :scheme" , " http" },
1386
- {" :authority" , " no-headers.com" },
1387
- {" x-request-foo" , " downstram" },
1388
- {" connection" , " te, mike, sam, will, close" },
1389
- {" te" , " gzip" },
1390
- {" mike" , " foo" },
1391
- {" sam" , " bar" },
1392
- {" will" , " baz" },
1393
- },
1394
- Http::TestRequestHeaderMapImpl{
1395
- {" :authority" , " no-headers.com" },
1396
- {" :path" , " /" },
1397
- {" :method" , " GET" },
1398
- {" x-request-foo" , " downstram" },
1399
- },
1400
- Http::TestResponseHeaderMapImpl{
1401
- {" server" , " envoy" },
1402
- {" content-length" , " 0" },
1403
- {" :status" , " 200" },
1404
- {" x-return-foo" , " upstream" },
1405
- },
1406
- Http::TestResponseHeaderMapImpl{
1407
- {" server" , " envoy" },
1408
- {" x-return-foo" , " upstream" },
1409
- {" :status" , " 200" },
1410
- {" connection" , " close" },
1411
- });
1412
- }
1413
-
1414
1342
using EmptyHeaderIntegrationTest = HttpProtocolIntegrationTest;
1415
1343
using HeaderValueOption = envoy::config::core::v3::HeaderValueOption;
1416
1344
0 commit comments