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 0f5ca70 commit ff110a5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion apisix/plugins/opa/helper.lua
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,12 @@ local function build_http_request(conf, ctx)
}

if conf.with_body then
http.body = get_body_for_request()
local body, err = get_body_for_request()
if err then
core.log.warn(err)
else
http.body = body
end
end

return http
Expand Down

0 comments on commit ff110a5

Please sign in to comment.