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 44fbd79 commit 076f5faCopy full SHA for 076f5fa
apisix/plugins/opa/helper.lua
@@ -39,11 +39,11 @@ local function get_body_for_request()
39
if err ~= nil then
40
error("opa - failed to get request body: ", err)
41
end
42
- if body == nil then
+ if original_body == nil then
43
return nil
44
45
-- decode to prevent double encoded json objects
46
- body, err = core.json.decode(original_body)
+ local body, err = core.json.decode(original_body)
47
48
-- if its not json, the body can just be added
49
body = original_body
0 commit comments