Skip to content

Commit c66bd50

Browse files
wistefanmoonming
andauthored
Update apisix/plugins/opa/helper.lua
Co-authored-by: Ming Wen <[email protected]>
1 parent 90f692e commit c66bd50

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

apisix/plugins/opa/helper.lua

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,12 @@ local function build_http_request(conf, ctx)
6363
}
6464

6565
if conf.with_body then
66-
http.body = get_body_for_request()
66+
local body, err = get_body_for_request()
67+
if err then
68+
core.log.warn(err)
69+
else
70+
http.body = body
71+
end
6772
end
6873

6974
return http

0 commit comments

Comments
 (0)