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

FIX: Fix handling of multi-cookie responses #429

Merged
merged 1 commit into from Jul 1, 2020

Conversation

riking
Copy link
Contributor

@riking riking commented Jun 29, 2020

FIX: Correctly parse relative redirects using Addressable

Also rename 'header' to 'redir_header' to deconflict with 'headers' parameter


We were slamming cookies together, such that the last parameter of one cookie would bleed into the name of the next. Medium.com was not happy with this arrangement.

lib/onebox/helpers.rb Show resolved Hide resolved
FIX: Correctly parse relative redirects using Addressable

Also rename 'header' to 'redir_header' to deconflict with 'headers' parameter

Add tests for redirect handling
Copy link
Contributor

@eviltrout eviltrout left a comment

Choose a reason for hiding this comment

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

Looks good, thanks Kane!

@riking riking merged commit b701599 into discourse:master Jul 1, 2020
@riking riking deleted the patch-156192 branch July 1, 2020 02:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants