Problem: when you set tnt_pass_http_request to parse_args parse_urlencoded pass_body, it's impossible to access raw POST body even if there are binary file, for example.
This problem caused because parse_urlencoded conflicts with pass_body.
In this patch, I've splitted these options to allow them work together.
Config parameters is backward compatible with upstream.
pass_body will allow you to access request variable body that containts unparsed request body.
parse_urlencoded will allow you to access new request variable args_urlencoded that will contain table with parsed POST request (like args for GET)
NB! If you using parse_urlencoded now, you need to change req.body to req.args_urlencoded in your Lua code. If you using only pass_body, no need to change anything.
Problem: when you set
tnt_pass_http_request
toparse_args parse_urlencoded pass_body
, it's impossible to access raw POST body even if there are binary file, for example.This problem caused because
parse_urlencoded
conflicts withpass_body
.In this patch, I've splitted these options to allow them work together. Config parameters is backward compatible with upstream.
pass_body
will allow you to access request variablebody
that containts unparsed request body.parse_urlencoded
will allow you to access new request variableargs_urlencoded
that will contain table with parsed POST request (likeargs
for GET)NB! If you using
parse_urlencoded
now, you need to changereq.body
toreq.args_urlencoded
in your Lua code. If you using onlypass_body
, no need to change anything.