Skip to content

clear response tagger after tagging to not leak tags from one response to the next #430

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 3, 2018

Conversation

dbu
Copy link
Contributor

@dbu dbu commented Oct 2, 2018

as discussed in FriendsOfSymfony/FOSHttpCacheBundle#486

once this is merged, i will tag a patch release and update the bundle SymfonyResponseListener to also call clear

@dbu
Copy link
Contributor Author

dbu commented Oct 2, 2018

@andrerom does this make sense?

Copy link
Contributor

@andrerom andrerom left a comment

Choose a reason for hiding this comment

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

+1 besides super nitpick on readability.

@@ -143,10 +158,13 @@ public function tagResponse(ResponseInterface $response, $replace = false)
return $response;
}

$value = $this->getTagsHeaderValue();
Copy link
Contributor

Choose a reason for hiding this comment

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

$tagsHeaderValue if we want to be explicit

@dbu dbu force-pushed the clean-tags-after-tagging branch from 805a203 to bc9c1ff Compare October 3, 2018 15:46
@dbu
Copy link
Contributor Author

dbu commented Oct 3, 2018

thank you, readability is important!

@dbu dbu merged commit e4ac8c7 into master Oct 3, 2018
@dbu dbu deleted the clean-tags-after-tagging branch October 3, 2018 15:52
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