@@ -650,19 +650,16 @@ func TestCreateServers(t *testing.T) {
650
650
Path : "@rule0-route0" ,
651
651
ProxyPass : "http://test_foo_80$request_uri" ,
652
652
ProxySetHeaders : httpBaseHeaders ,
653
- ResponseHeaders : http.ResponseHeaders {},
654
653
},
655
654
{
656
655
Path : "@rule0-route1" ,
657
656
ProxyPass : "http://test_foo_80$request_uri" ,
658
657
ProxySetHeaders : httpBaseHeaders ,
659
- ResponseHeaders : http.ResponseHeaders {},
660
658
},
661
659
{
662
660
Path : "@rule0-route2" ,
663
661
ProxyPass : "http://test_foo_80$request_uri" ,
664
662
ProxySetHeaders : httpBaseHeaders ,
665
- ResponseHeaders : http.ResponseHeaders {},
666
663
},
667
664
{
668
665
Path : "/" ,
@@ -672,7 +669,6 @@ func TestCreateServers(t *testing.T) {
672
669
Path : "@rule1-route0" ,
673
670
ProxyPass : "http://$test__route1_rule1$request_uri" ,
674
671
ProxySetHeaders : httpBaseHeaders ,
675
- ResponseHeaders : http.ResponseHeaders {},
676
672
},
677
673
{
678
674
Path : "/test/" ,
@@ -682,13 +678,11 @@ func TestCreateServers(t *testing.T) {
682
678
Path : "/path-only/" ,
683
679
ProxyPass : "http://invalid-backend-ref$request_uri" ,
684
680
ProxySetHeaders : httpBaseHeaders ,
685
- ResponseHeaders : http.ResponseHeaders {},
686
681
},
687
682
{
688
683
Path : "= /path-only" ,
689
684
ProxyPass : "http://invalid-backend-ref$request_uri" ,
690
685
ProxySetHeaders : httpBaseHeaders ,
691
- ResponseHeaders : http.ResponseHeaders {},
692
686
},
693
687
{
694
688
Path : "/backend-tls-policy/" ,
@@ -756,21 +750,18 @@ func TestCreateServers(t *testing.T) {
756
750
Rewrites : []string {"^ /replacement break" },
757
751
ProxyPass : "http://test_foo_80" ,
758
752
ProxySetHeaders : rewriteProxySetHeaders ,
759
- ResponseHeaders : http.ResponseHeaders {},
760
753
},
761
754
{
762
755
Path : "= /rewrite" ,
763
756
Rewrites : []string {"^ /replacement break" },
764
757
ProxyPass : "http://test_foo_80" ,
765
758
ProxySetHeaders : rewriteProxySetHeaders ,
766
- ResponseHeaders : http.ResponseHeaders {},
767
759
},
768
760
{
769
761
Path : "@rule8-route0" ,
770
762
Rewrites : []string {"^/rewrite-with-headers(.*)$ /prefix-replacement$1 break" },
771
763
ProxyPass : "http://test_foo_80" ,
772
764
ProxySetHeaders : rewriteProxySetHeaders ,
773
- ResponseHeaders : http.ResponseHeaders {},
774
765
},
775
766
{
776
767
Path : "/rewrite-with-headers/" ,
@@ -810,13 +801,11 @@ func TestCreateServers(t *testing.T) {
810
801
Path : "= /exact" ,
811
802
ProxyPass : "http://test_foo_80$request_uri" ,
812
803
ProxySetHeaders : httpBaseHeaders ,
813
- ResponseHeaders : http.ResponseHeaders {},
814
804
},
815
805
{
816
806
Path : "@rule12-route0" ,
817
807
ProxyPass : "http://test_foo_80$request_uri" ,
818
808
ProxySetHeaders : httpBaseHeaders ,
819
- ResponseHeaders : http.ResponseHeaders {},
820
809
},
821
810
{
822
811
Path : "= /test" ,
@@ -1029,13 +1018,11 @@ func TestCreateServersConflicts(t *testing.T) {
1029
1018
Path : "/coffee/" ,
1030
1019
ProxyPass : "http://test_foo_80$request_uri" ,
1031
1020
ProxySetHeaders : httpBaseHeaders ,
1032
- ResponseHeaders : http.ResponseHeaders {},
1033
1021
},
1034
1022
{
1035
1023
Path : "= /coffee" ,
1036
1024
ProxyPass : "http://test_bar_80$request_uri" ,
1037
1025
ProxySetHeaders : httpBaseHeaders ,
1038
- ResponseHeaders : http.ResponseHeaders {},
1039
1026
},
1040
1027
createDefaultRootLocation (),
1041
1028
},
@@ -1069,13 +1056,11 @@ func TestCreateServersConflicts(t *testing.T) {
1069
1056
Path : "= /coffee" ,
1070
1057
ProxyPass : "http://test_foo_80$request_uri" ,
1071
1058
ProxySetHeaders : httpBaseHeaders ,
1072
- ResponseHeaders : http.ResponseHeaders {},
1073
1059
},
1074
1060
{
1075
1061
Path : "/coffee/" ,
1076
1062
ProxyPass : "http://test_bar_80$request_uri" ,
1077
1063
ProxySetHeaders : httpBaseHeaders ,
1078
- ResponseHeaders : http.ResponseHeaders {},
1079
1064
},
1080
1065
createDefaultRootLocation (),
1081
1066
},
@@ -1119,13 +1104,11 @@ func TestCreateServersConflicts(t *testing.T) {
1119
1104
Path : "/coffee/" ,
1120
1105
ProxyPass : "http://test_bar_80$request_uri" ,
1121
1106
ProxySetHeaders : httpBaseHeaders ,
1122
- ResponseHeaders : http.ResponseHeaders {},
1123
1107
},
1124
1108
{
1125
1109
Path : "= /coffee" ,
1126
1110
ProxyPass : "http://test_baz_80$request_uri" ,
1127
1111
ProxySetHeaders : httpBaseHeaders ,
1128
- ResponseHeaders : http.ResponseHeaders {},
1129
1112
},
1130
1113
createDefaultRootLocation (),
1131
1114
},
@@ -1244,13 +1227,11 @@ func TestCreateLocationsRootPath(t *testing.T) {
1244
1227
Path : "/path-1" ,
1245
1228
ProxyPass : "http://test_foo_80$request_uri" ,
1246
1229
ProxySetHeaders : httpBaseHeaders ,
1247
- ResponseHeaders : http.ResponseHeaders {},
1248
1230
},
1249
1231
{
1250
1232
Path : "/path-2" ,
1251
1233
ProxyPass : "http://test_foo_80$request_uri" ,
1252
1234
ProxySetHeaders : httpBaseHeaders ,
1253
- ResponseHeaders : http.ResponseHeaders {},
1254
1235
},
1255
1236
{
1256
1237
Path : "/" ,
@@ -1297,19 +1278,16 @@ func TestCreateLocationsRootPath(t *testing.T) {
1297
1278
Path : "/path-1" ,
1298
1279
ProxyPass : "http://test_foo_80$request_uri" ,
1299
1280
ProxySetHeaders : httpBaseHeaders ,
1300
- ResponseHeaders : http.ResponseHeaders {},
1301
1281
},
1302
1282
{
1303
1283
Path : "/path-2" ,
1304
1284
ProxyPass : "http://test_foo_80$request_uri" ,
1305
1285
ProxySetHeaders : httpBaseHeaders ,
1306
- ResponseHeaders : http.ResponseHeaders {},
1307
1286
},
1308
1287
{
1309
1288
Path : "/" ,
1310
1289
ProxyPass : "http://test_foo_80$request_uri" ,
1311
1290
ProxySetHeaders : httpBaseHeaders ,
1312
- ResponseHeaders : http.ResponseHeaders {},
1313
1291
},
1314
1292
},
1315
1293
},
0 commit comments