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

body_filter_by_lua case some strange behaviors #2154

Open
9268 opened this issue Feb 15, 2023 · 4 comments
Open

body_filter_by_lua case some strange behaviors #2154

9268 opened this issue Feb 15, 2023 · 4 comments

Comments

@9268
Copy link

9268 commented Feb 15, 2023

中文讨论:https://groups.google.com/g/openresty/c/kCQM3WcLC-k/m/xPckMVBSBwAJ

by using body_filter_by_lua with ngx.arg[1] uncahange,it return strange truncated response
add chunked_transfer_encoding off ,it return duplicate response line
#file-zcurl-filterandchunkoff-out-L97 && #file-zcurl-filterandchunkoff-out-L142

i test it on latest openresty 1.21.4.1 and Tengine/2.3.2(nginx/1.17.3) , Tengine is all ok

see full conf and debug log here: https://gist.github.com/9268/a9491787efa50201fbc48d82e5de1406

if someone can provide some test case example ,i can write some cases

@zhuizhuhaomeng
Copy link
Contributor

zhuizhuhaomeng commented Feb 15, 2023

https://github.com/openresty/lua-nginx-module/blob/master/t/082-body-filter.t

These are the original test cases.
You can add some test cases like them.

@9268
Copy link
Author

9268 commented Feb 16, 2023

@zhuizhuhaomeng
Copy link
Contributor

#2155

There seems no problem in the latest lua-nginx-module.
Plese look at the test case above.

@9268
Copy link
Author

9268 commented Feb 17, 2023

sorry,I didn't use this test framework before,and I did't find out my case result in #2155 ,

https://app.travis-ci.com/github/openresty/lua-nginx-module/jobs/596209479#L2947
This shows my case did't run acturally, Can you give me more specific results urls?

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