From 221a46cc5562e1986f8ae9a2b5310b3ec76d2231 Mon Sep 17 00:00:00 2001 From: MrMelon54 Date: Wed, 30 Aug 2023 12:13:55 +0100 Subject: [PATCH] Test for loop detected header --- target/route_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/route_test.go b/target/route_test.go index 1e2b7b7..30f15a5 100644 --- a/target/route_test.go +++ b/target/route_test.go @@ -42,7 +42,7 @@ func TestRoute_ServeHTTP(t *testing.T) { {Route{Dst: "2.2.2.2/world", Flags: FlagAbs | FlagSecureMode}, "https://2.2.2.2/world"}, {Route{Dst: "api.example.com/world", Flags: FlagAbs | FlagSecureMode | FlagForwardHost}, "https://api.example.com/world"}, {Route{Dst: "api.example.org/world", Flags: FlagAbs | FlagSecureMode | FlagForwardAddr}, "https://api.example.org/world"}, - {Route{Dst: "3.3.3.3/headers", Flags: FlagAbs, Headers: http.Header{"X-Other": []string{"test value"}}}, "http://3.3.3.3/headers"}, + {Route{Dst: "3.3.3.3/headers", Flags: FlagAbs, Headers: http.Header{"X-Other": []string{"test value"}, "X-Violet-Loop-Detect": []string{"1"}}}, "http://3.3.3.3/headers"}, } for _, i := range a { pt := &proxyTester{}