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

Scrub the middleware cover page request env before request #41

Merged
merged 2 commits into from
Jan 16, 2020

Conversation

abrom
Copy link
Contributor

@abrom abrom commented Jan 16, 2020

Fixes issue raised in #40

The original request env was adding cached parameters resulting in the cover page requests using the cache instead of generating the params themselves. This change scrubs the env before calling to the app when generating the cover page. The method used was pulled out of the ActionController TestCase class so should give us reasonable expectations over what needs to be cleaned up between requests.

@abrom abrom force-pushed the scrub-cover-page-env branch from 4f40fb2 to 617c142 Compare January 16, 2020 00:24
@abrom
Copy link
Contributor Author

abrom commented Jan 16, 2020

FYI @jnimety

I've tested it locally and the fix works fine for me. Would you mind verifying that this branch resolves the issue for your configuration too

If it works as expected I'll release a build

@jnimety
Copy link
Contributor

jnimety commented Jan 16, 2020

I'll test tomorrow morning, thanks again for the quick turnaround.

@jnimety
Copy link
Contributor

jnimety commented Jan 16, 2020

Works fine for me as well.

@abrom abrom merged commit e8e84de into master Jan 16, 2020
@abrom abrom deleted the scrub-cover-page-env branch January 16, 2020 14:07
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