Skip to content

Commit

Permalink
fix(clustering/rpc): rpc_capabilities should be encoded as array (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
chronolaw authored Nov 27, 2024
1 parent c98f385 commit ad5fdef
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kong/clustering/rpc/callbacks.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ local _M = {}
local _MT = { __index = _M, }


local cjson = require("cjson.safe")
local utils = require("kong.clustering.rpc.utils")


Expand All @@ -15,6 +16,9 @@ function _M.new()
capabilities_list = {}, -- updated as register() is called
}

-- it should always be an array when json encoding
setmetatable(self.capabilities_list, cjson.array_mt)

return setmetatable(self, _MT)
end

Expand Down

1 comment on commit ad5fdef

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bazel Build

Docker image available kong/kong:ad5fdefe83fe5eb7ff924bd2d5f02a3bb96ed736
Artifacts available https://github.com/Kong/kong/actions/runs/12049185546

Please sign in to comment.