Skip to content

[VCL] Keep user context headers in debug mode #429

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

Merged
merged 1 commit into from
Oct 1, 2018

Conversation

andrerom
Copy link
Contributor

@andrerom andrerom commented Oct 1, 2018

To improve debugging, and to be consistent with other cleanup keep headers if we are in debug mode.

NOTE: If you know about a way to return early in a sane way here, we can do this without changing all the lines here.

To improve debugging, and to be consistent with other cleanup keep
headers if we are in debug mode.
Copy link
Contributor

@dbu dbu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you! i think its not possible to return early. return in varnish can only jump to the next state that you specify e.g. return deliver;, so any further code for the current state won't be executed anymore. i think this is the correct way to do this, and makes a lot of sense.

@dbu dbu merged commit 208ae82 into FriendsOfSymfony:master Oct 1, 2018
@andrerom andrerom deleted the fos_user_context_debug branch October 1, 2018 13:11
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.

2 participants