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

Fixed Session::write_response_header_ref bypassing downstream modules #289

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

palant
Copy link
Contributor

@palant palant commented Jun 15, 2024

As mentioned in #206 (comment), pingora_proxy::Session::write_response_header_ref will currently call directly into the downstream session and bypass downstream modules. This might mess up compression for example.

Instead of duplicating the code triggering modules I decided to make this call Session::write_response_header with a cloned resp – this is how this works anyway, merely a few levels further down.

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

Successfully merging this pull request may close these issues.

3 participants