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 ff110a5 commit 60b1efeCopy full SHA for 60b1efe
apisix/plugins/opa/helper.lua
@@ -37,7 +37,7 @@ end
37
local function get_body_for_request()
38
local original_body, err = core.request.get_body()
39
if err ~= nil then
40
- error("opa - failed to get request body: " .. err)
+ return nil, "failed to get request body: " .. err
41
end
42
if original_body == nil then
43
return nil
0 commit comments