-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
fix(pdk) allow kong.response.exit on header_filter with no body #4039
Conversation
location /t { | ||
proxy_pass http://unix:$TEST_NGINX_NXSOCK/nginx.sock; | ||
set $upstream_uri '/t'; | ||
set $upstream_scheme 'http'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are those two variables used in this test case?
e476171
to
49a5ffd
Compare
What does |
|
7f702d5
to
9c7f773
Compare
9d81304
to
805cb30
Compare
805cb30
to
6aeee60
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with tweaks. Merging since the error is a known one being investigated and should not delay this merge.
This fix on kong.response.exit fixes unintended failures on the response-ratelimiting plugin which were introduced when it was translated to the PDK.
I temporarily activated the response-ratelimiting specs on travis and they worked (although I had to to re-launch them many times, they are still quite flaky).
This PR also includes some doc comments on the pdk_phase_checking function, please verify that those comments are correct.