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

Implemented redirect via HTML meta refresh tag support #1086

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Implemented redirect via HTML meta refresh tag support #1086

wants to merge 1 commit into from

Conversation

whyatem
Copy link

@whyatem whyatem commented Jun 25, 2018

Resolved issue (#371). As @jhy suggested, this feature is optional and disabled by default. Enable it using Connection.followMetaRedirects(true)

@jhy
Copy link
Owner

jhy commented Dec 27, 2018

Hi, thanks for this. Can you add some integration tests, and unit tests for the meta tag -> url parser? I think this only works if the content value is like 0;http://example.com/. But the spec is 0; url=http://example.com. So that needs to be more robust.

Also, this will NPE if there is no content attribute and if there is no semi colon in the attribute.

Also can you squash this PR.

@whyatem
Copy link
Author

whyatem commented Jan 3, 2019

@jhy thanks for pointing everything out, I made some fixes. Not sure how to properly unit test this, due to the fact that the logic is encapsulated, though I did write the integration test.

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.

None yet

2 participants