Open amdei opened 1 year ago
- Looking at source code I've noticed a lot of global variables. lua-nginx-module complains on them, offering to consider to make them
local
.- Upon parsing it keeps spaces in front of cookie names
- Cookie values with
=
signs in them being parsed incorrectly.- Strange (for me) format of return values
- Method names with
2
at the end? Why?- Probably something else...
Thank you for your question
Tested.
Why did you not add local because changes within a function do not go global.
If there are parsing errors, can you please send a payload and I will fix it on my end
The format of the return value is reserved because it includes all double names.
The method name is at the end. This is in habit
Thanks for a prompt reply!
local
to ensure there will be no frightening errors in nginx's logs. Does MR will be considered to review?Cookie: totally_insecure=steal+me!; _ym_uid=1688391939759575606; _ym_d=1688391939
Outpup will be something like this:
JJ: [{"totally_insecure":"steal+me!"},{" _ym_uid":"1688391939759575606"},{" _ym_d":"1688391939"}]
Note: spaces in front of ymCookie: myauth=kqTNyMss9lYT5LqaK934zL/rAwZjfs8lurnjlgh1ilk=:Z+YiiE8c/PcX0GqajKrMJWjencAGg+HHtvtRzRE+qAQ=
Outpup will be something like this:
[{" myauth":"kqTNyMss9lYT5LqaK934zL/rAwZjfs8lurnjlgh1ilk :Z+YiiE8c/PcX0GqajKrMJWjencAGg+HHtvtRzRE+qAQ "}]
Note: both equal signs (=
) has disappeared from cookie value.
Looking at source code I've noticed a lot of global variables. lua-nginx-module complains on them, offering to consider to make them
local
.Upon parsing it keeps spaces in front of cookie names
Cookie values with
=
signs in them being parsed incorrectly.Strange (for me) format of return values
Method names with
2
at the end? Why?Probably something else...