We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8893acd commit 6cced4fCopy full SHA for 6cced4f
apisix/plugins/grpc-transcode/response.lua
@@ -28,7 +28,9 @@ local pairs = pairs
28
local setmetatable = setmetatable
29
30
pb.option "decode_default_array"
31
-local repeated_label = 3
+-- Protobuf repeated field label value
32
+local PROTOBUF_REPEATED_LABEL = 3
33
+local repeated_label = PROTOBUF_REPEATED_LABEL
34
35
local function fetch_proto_array_names(proto_obj)
36
local names = {}
@@ -50,7 +52,7 @@ end
50
52
51
53
local function set_default_array(tab, array_names)
54
if type(tab) ~= "table" then
- return false
55
+ return
56
end
57
for k, v in pairs(tab) do
58
if type(v) == "table" then
0 commit comments