Skip to content

Commit 60b1efe

Browse files
wistefanmoonming
andcommitted
Update apisix/plugins/opa/helper.lua
Co-authored-by: Ming Wen <[email protected]>
1 parent ff110a5 commit 60b1efe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apisix/plugins/opa/helper.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ end
3737
local function get_body_for_request()
3838
local original_body, err = core.request.get_body()
3939
if err ~= nil then
40-
error("opa - failed to get request body: " .. err)
40+
return nil, "failed to get request body: " .. err
4141
end
4242
if original_body == nil then
4343
return nil

0 commit comments

Comments
 (0)