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

[Swoole] Sub-request does not receive parent request headers #140

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

Conversation

DmitriiKoziuk
Copy link

These changes allow parent request headers to be taken into sub-request when creating it.

One of the popular features of Symfony and Twig is the ability to render a controller from a template, but this causes the creation of a sub-request and the result may not be correct because the sub-request will be created without taking the headers from the parent request.

Please look Symfony\Component\HttpFoundation\Request at line 279 and you will understand that the headers are taken from $this->server->getHeaders().

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

Successfully merging this pull request may close these issues.

1 participant