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

rds_json_user_property can not set int value #7

Open
xiaohuilam opened this issue Aug 16, 2014 · 1 comment
Open

rds_json_user_property can not set int value #7

xiaohuilam opened this issue Aug 16, 2014 · 1 comment

Comments

@xiaohuilam
Copy link

rds_json_user_property can not set int value to a property,
if will translation int value into a string.

@agentzh
Copy link
Member

agentzh commented Aug 16, 2014

@xiaohuilam Because literal values specified directly in nginx.conf are all strings per se. That is, 32 is exactly equivalent to "32" to the nginx config file parser. We could add a third (optional) argument to the rds_json_user_property directive so as to specify a different value type, for example,

rds_json_user_property age 26 int;

Patches welcome :)

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

2 participants