From 2536a957a25b9919260a37c9a83a44eca72a717a Mon Sep 17 00:00:00 2001 From: Javier Date: Thu, 31 Mar 2022 21:09:57 -0500 Subject: [PATCH] fix(protobuf) typo on encoding array-style tables as ListValue (#8621) --- kong/tools/protobuf.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kong/tools/protobuf.lua b/kong/tools/protobuf.lua index 9fa5767c3697..c76c1c85f271 100644 --- a/kong/tools/protobuf.lua +++ b/kong/tools/protobuf.lua @@ -16,7 +16,7 @@ do local struct_v = nil if t == "table" then - if t[1] ~= nil then + if v[1] ~= nil then list_v = structpb_list(v) else struct_v = structpb_struct(v)