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

Add option to rewrite path in set-cookie headers #1235

Closed
wants to merge 4 commits into from

Conversation

swillis12
Copy link
Contributor

Adding ability to rewrite the path of a cookie in the set-cookie header, building on top of what was there for #1009. I added some documentation and test cases and am open to feedback. I look forward to having this merged in.

Example usage:
"cookiePathRewrite": "/"

This will rewrite cookie paths from /dummyPath to /. This is useful when using Tomcat and each application is hosted in it's own "context" (which is the war file name), so the path for each cookie is set to the war file name.

@swillis12
Copy link
Contributor Author

Failures due to #1167

@jcrugzz
Copy link
Contributor

jcrugzz commented Apr 19, 2018

@swillis12 ill get this merged into my maintenance branch when I re-add backwards compatibility so this is not a breaking change.

@jcrugzz
Copy link
Contributor

jcrugzz commented Apr 19, 2018

I realized this isnt a breaking change, silly me. Thanks for the contribution @swillis12. Cherry picked into maintenance. branch

@jcrugzz jcrugzz closed this Apr 19, 2018
@jcrugzz
Copy link
Contributor

jcrugzz commented Apr 20, 2018

superceded by #1251

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