Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tnt_pass_http_request: support arrays in query string via parse_args parameter #136

Open
VifleY opened this issue Oct 14, 2020 · 0 comments

Comments

@VifleY
Copy link

VifleY commented Oct 14, 2020

Feature request.

Though query string format is not specified in rfc3986 (URI syntax), some of web servers support arrays in query parameters.

For example:
PHP: ?array[]=1&array[]=2 => [1,2]
Some of Node.js and Python frameworks: ?array=1&array=2 => [1,2]

Suggestion: encode such parameters as Lua table passed to TNT via request.args
Ex:
URI: ?array=1&array=[2]
Tarantool:
type(request.args['array']) == 'table'

That would help users to avoid usage of their own format to parse multivalue parameters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant