Hello
help, I can not understand why the body is not added to the request
`server {
listen 8081;
server_name _;

proxy_intercept_errors on;
lua_need_request_body on;


error_log  /var/log/nginx/aa_error.log warn;

location / {
   content_by_lua_block {
   local body = 'api_key=12345678&event={ "user_id":"QY110041", "event_type":"open mail" ,"event_properties":{ "type_mail":"new_registration_company" } }'
  #ngx.say(body)
  log(body)
  ngx.req.set_body_data(body)
  #ngx.req.set_body_file(body)
 }
access_log  /var/log/nginx/aa_access.log log_body;
proxy_pass http://qa-test.fov:7115/httpapi;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;

}

}
[root@ conf]# curl --location --request POST 'http://127.0.0.1:8081'
missing_event
send direct works[root@conf]# curl --location --request POST 'http://qa-test.fov:7115/httpapi' --data 'api_key=bd12345678&event={ "user_id":"QY110041","event_type":"open mail","event_properties":{"type_mail":"new_registration_company"}}'
success`

    Write a Reply...