@@ -650,19 +650,16 @@ func TestCreateServers(t *testing.T) {
650650 Path : "@rule0-route0" ,
651651 ProxyPass : "http://test_foo_80$request_uri" ,
652652 ProxySetHeaders : httpBaseHeaders ,
653- ResponseHeaders : http.ResponseHeaders {},
654653 },
655654 {
656655 Path : "@rule0-route1" ,
657656 ProxyPass : "http://test_foo_80$request_uri" ,
658657 ProxySetHeaders : httpBaseHeaders ,
659- ResponseHeaders : http.ResponseHeaders {},
660658 },
661659 {
662660 Path : "@rule0-route2" ,
663661 ProxyPass : "http://test_foo_80$request_uri" ,
664662 ProxySetHeaders : httpBaseHeaders ,
665- ResponseHeaders : http.ResponseHeaders {},
666663 },
667664 {
668665 Path : "/" ,
@@ -672,7 +669,6 @@ func TestCreateServers(t *testing.T) {
672669 Path : "@rule1-route0" ,
673670 ProxyPass : "http://$test__route1_rule1$request_uri" ,
674671 ProxySetHeaders : httpBaseHeaders ,
675- ResponseHeaders : http.ResponseHeaders {},
676672 },
677673 {
678674 Path : "/test/" ,
@@ -682,13 +678,11 @@ func TestCreateServers(t *testing.T) {
682678 Path : "/path-only/" ,
683679 ProxyPass : "http://invalid-backend-ref$request_uri" ,
684680 ProxySetHeaders : httpBaseHeaders ,
685- ResponseHeaders : http.ResponseHeaders {},
686681 },
687682 {
688683 Path : "= /path-only" ,
689684 ProxyPass : "http://invalid-backend-ref$request_uri" ,
690685 ProxySetHeaders : httpBaseHeaders ,
691- ResponseHeaders : http.ResponseHeaders {},
692686 },
693687 {
694688 Path : "/backend-tls-policy/" ,
@@ -756,21 +750,18 @@ func TestCreateServers(t *testing.T) {
756750 Rewrites : []string {"^ /replacement break" },
757751 ProxyPass : "http://test_foo_80" ,
758752 ProxySetHeaders : rewriteProxySetHeaders ,
759- ResponseHeaders : http.ResponseHeaders {},
760753 },
761754 {
762755 Path : "= /rewrite" ,
763756 Rewrites : []string {"^ /replacement break" },
764757 ProxyPass : "http://test_foo_80" ,
765758 ProxySetHeaders : rewriteProxySetHeaders ,
766- ResponseHeaders : http.ResponseHeaders {},
767759 },
768760 {
769761 Path : "@rule8-route0" ,
770762 Rewrites : []string {"^/rewrite-with-headers(.*)$ /prefix-replacement$1 break" },
771763 ProxyPass : "http://test_foo_80" ,
772764 ProxySetHeaders : rewriteProxySetHeaders ,
773- ResponseHeaders : http.ResponseHeaders {},
774765 },
775766 {
776767 Path : "/rewrite-with-headers/" ,
@@ -810,13 +801,11 @@ func TestCreateServers(t *testing.T) {
810801 Path : "= /exact" ,
811802 ProxyPass : "http://test_foo_80$request_uri" ,
812803 ProxySetHeaders : httpBaseHeaders ,
813- ResponseHeaders : http.ResponseHeaders {},
814804 },
815805 {
816806 Path : "@rule12-route0" ,
817807 ProxyPass : "http://test_foo_80$request_uri" ,
818808 ProxySetHeaders : httpBaseHeaders ,
819- ResponseHeaders : http.ResponseHeaders {},
820809 },
821810 {
822811 Path : "= /test" ,
@@ -1029,13 +1018,11 @@ func TestCreateServersConflicts(t *testing.T) {
10291018 Path : "/coffee/" ,
10301019 ProxyPass : "http://test_foo_80$request_uri" ,
10311020 ProxySetHeaders : httpBaseHeaders ,
1032- ResponseHeaders : http.ResponseHeaders {},
10331021 },
10341022 {
10351023 Path : "= /coffee" ,
10361024 ProxyPass : "http://test_bar_80$request_uri" ,
10371025 ProxySetHeaders : httpBaseHeaders ,
1038- ResponseHeaders : http.ResponseHeaders {},
10391026 },
10401027 createDefaultRootLocation (),
10411028 },
@@ -1069,13 +1056,11 @@ func TestCreateServersConflicts(t *testing.T) {
10691056 Path : "= /coffee" ,
10701057 ProxyPass : "http://test_foo_80$request_uri" ,
10711058 ProxySetHeaders : httpBaseHeaders ,
1072- ResponseHeaders : http.ResponseHeaders {},
10731059 },
10741060 {
10751061 Path : "/coffee/" ,
10761062 ProxyPass : "http://test_bar_80$request_uri" ,
10771063 ProxySetHeaders : httpBaseHeaders ,
1078- ResponseHeaders : http.ResponseHeaders {},
10791064 },
10801065 createDefaultRootLocation (),
10811066 },
@@ -1119,13 +1104,11 @@ func TestCreateServersConflicts(t *testing.T) {
11191104 Path : "/coffee/" ,
11201105 ProxyPass : "http://test_bar_80$request_uri" ,
11211106 ProxySetHeaders : httpBaseHeaders ,
1122- ResponseHeaders : http.ResponseHeaders {},
11231107 },
11241108 {
11251109 Path : "= /coffee" ,
11261110 ProxyPass : "http://test_baz_80$request_uri" ,
11271111 ProxySetHeaders : httpBaseHeaders ,
1128- ResponseHeaders : http.ResponseHeaders {},
11291112 },
11301113 createDefaultRootLocation (),
11311114 },
@@ -1244,13 +1227,11 @@ func TestCreateLocationsRootPath(t *testing.T) {
12441227 Path : "/path-1" ,
12451228 ProxyPass : "http://test_foo_80$request_uri" ,
12461229 ProxySetHeaders : httpBaseHeaders ,
1247- ResponseHeaders : http.ResponseHeaders {},
12481230 },
12491231 {
12501232 Path : "/path-2" ,
12511233 ProxyPass : "http://test_foo_80$request_uri" ,
12521234 ProxySetHeaders : httpBaseHeaders ,
1253- ResponseHeaders : http.ResponseHeaders {},
12541235 },
12551236 {
12561237 Path : "/" ,
@@ -1297,19 +1278,16 @@ func TestCreateLocationsRootPath(t *testing.T) {
12971278 Path : "/path-1" ,
12981279 ProxyPass : "http://test_foo_80$request_uri" ,
12991280 ProxySetHeaders : httpBaseHeaders ,
1300- ResponseHeaders : http.ResponseHeaders {},
13011281 },
13021282 {
13031283 Path : "/path-2" ,
13041284 ProxyPass : "http://test_foo_80$request_uri" ,
13051285 ProxySetHeaders : httpBaseHeaders ,
1306- ResponseHeaders : http.ResponseHeaders {},
13071286 },
13081287 {
13091288 Path : "/" ,
13101289 ProxyPass : "http://test_foo_80$request_uri" ,
13111290 ProxySetHeaders : httpBaseHeaders ,
1312- ResponseHeaders : http.ResponseHeaders {},
13131291 },
13141292 },
13151293 },
0 commit comments