diff --git a/internal/proxy/connect_handler_test.go b/internal/proxy/connect_handler_test.go index a58df6f4b..ca50f3121 100644 --- a/internal/proxy/connect_handler_test.go +++ b/internal/proxy/connect_handler_test.go @@ -46,11 +46,11 @@ func getTestHttpProxy(commonProxyTestCase *tools.CommonHTTPProxyTestCase, endpoi StaticHeaders: map[string]string{ "X-Test": "test", }, + StatusToCodeTransforms: []configtypes.HttpStatusToCodeTransform{ + {StatusCode: 404, ToDisconnect: configtypes.TransformDisconnect{Code: 4504, Reason: "not found"}}, + }, }, }, - HttpStatusTransforms: []HttpStatusToCodeTransform{ - {StatusCode: 404, ToDisconnect: TransformDisconnect{Code: 4504, Reason: "not found"}}, - }, } }