Skip to content

Commit

Permalink
Update apisix/plugins/opa/helper.lua
Browse files Browse the repository at this point in the history
Co-authored-by: Ming Wen <[email protected]>
  • Loading branch information
wistefan and moonming committed Jan 15, 2025
1 parent ff110a5 commit 60b1efe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apisix/plugins/opa/helper.lua
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ end
local function get_body_for_request()
local original_body, err = core.request.get_body()
if err ~= nil then
error("opa - failed to get request body: " .. err)
return nil, "failed to get request body: " .. err
end
if original_body == nil then
return nil
Expand Down

0 comments on commit 60b1efe

Please sign in to comment.