Skip to content

Conversation

Labmem003
Copy link

English is poor, hope you understand.
HttpUrlConnection use a flag -- "instanceFollowRedirects", to define whether the protocol will automatically follow redirects or not. And the default value is true. So all redirects are handled by httpUrlConnection automatically. The redirect logic in HttpUrlSource have no chance to be run. We need to invoke setInstanceFollowRedirects(false) to get that chance.

@JingweiWang
Copy link

@Labmem003 Thank you.

@Labmem003
Copy link
Author

@JingweiWang my pleasure

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