local cjson = require "cjson" local args = ngx.req.get_uri_args() local request_headers = ngx.req.get_headers() if request_headers["token"] or args["token"] or args["data"] or args["amp;data"] then ngx.ctx.log_request = true ngx.req.read_body() end